Browse files

Fix Blueprint example with template_folder, #403.

  • Loading branch information...
1 parent e070ede commit 04bb720d3813c8cfe3ae46d2fb85dbc9a03a9b70 @rduplain rduplain committed Feb 14, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 docs/blueprints.rst
View
3 docs/blueprints.rst
@@ -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>')

0 comments on commit 04bb720

Please sign in to comment.