mirror of https://github.com/pallets/flask.git
Fix Blueprint example with template_folder, #403.
This commit is contained in:
parent
e070ede050
commit
04bb720d38
|
@ -61,7 +61,8 @@ implement a blueprint that does simple rendering of static templates::
|
|||
from flask import Blueprint, render_template, abort
|
||||
from jinja2 import TemplateNotFound
|
||||
|
||||
simple_page = Blueprint('simple_page', __name__)
|
||||
simple_page = Blueprint('simple_page', __name__,
|
||||
template_folder='templates')
|
||||
|
||||
@simple_page.route('/', defaults={'page': 'index'})
|
||||
@simple_page.route('/<page>')
|
||||
|
|
Loading…
Reference in New Issue