Fix Blueprint example with template_folder, #403.

This commit is contained in:
Ron DuPlain 2012-02-14 18:13:29 -05:00
parent e070ede050
commit 04bb720d38
1 changed files with 2 additions and 1 deletions

View File

@ -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>')