forked from orbit-oss/flask
Added a testcase for the improved module support
This commit is contained in:
parent
665fa2a32b
commit
d67a36cbdb
9 changed files with 45 additions and 2 deletions
9
tests/moduleapp/apps/admin/__init__.py
Normal file
9
tests/moduleapp/apps/admin/__init__.py
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
from flask import Module, render_template
|
||||
|
||||
|
||||
admin = Module(__name__, url_prefix='/admin')
|
||||
|
||||
|
||||
@admin.route('/')
|
||||
def index():
|
||||
return render_template('admin/index.html')
|
||||
1
tests/moduleapp/apps/admin/static/test.txt
Normal file
1
tests/moduleapp/apps/admin/static/test.txt
Normal file
|
|
@ -0,0 +1 @@
|
|||
Admin File
|
||||
1
tests/moduleapp/apps/admin/templates/index.html
Normal file
1
tests/moduleapp/apps/admin/templates/index.html
Normal file
|
|
@ -0,0 +1 @@
|
|||
Hello from the Admin
|
||||
Loading…
Add table
Add a link
Reference in a new issue