Skip to content
Myr

Fix Blueprint example with template_folder, #403.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Ron DuPlain · committed by Ron DuPlain · parent e070ede · Browse files · 1 file+2 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−1 removed

  • other:+2 added−1 removed

1 file+2 added−1 removed

modified:docs/blueprints.rst+2 added-1 removed
59 unmodified lines
6061 from flask import Blueprint, render_template, abort62 from jinja2 import TemplateNotFound6364 simple_page = Blueprint('simple_page', __name__)64 simple_page = Blueprint('simple_page', __name__,65 template_folder='templates')6667 @simple_page.route('/', defaults={'page': 'index'})68 @simple_page.route('/<page>')69 def show(page):
135 unmodified lines