mirror of https://github.com/mitsuhiko/flask.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
310 B
14 lines
310 B
14 years ago
|
from flask import Blueprint, render_template
|
||
|
|
||
14 years ago
|
frontend = Blueprint('frontend', __name__, template_folder='templates')
|
||
14 years ago
|
|
||
|
|
||
|
@frontend.route('/')
|
||
|
def index():
|
||
|
return render_template('frontend/index.html')
|
||
10 years ago
|
|
||
|
|
||
|
@frontend.route('/missing')
|
||
|
def missing_template():
|
||
|
return render_template('missing_template.html')
|