Browse Source

Fix Blueprint example with template_folder, #403.

pull/218/merge
Ron DuPlain 13 years ago
parent
commit
04bb720d38
  1. 3
      docs/blueprints.rst

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

Loading…
Cancel
Save