flask/tests/test_apps/blueprintapp/apps/frontend/__init__.py
Markus Unterwaditzer 3550b26071 Move tests
2014-09-11 22:09:50 +02:00

13 lines
310 B
Python

from flask import Blueprint, render_template
frontend = Blueprint('frontend', __name__, template_folder='templates')
@frontend.route('/')
def index():
return render_template('frontend/index.html')
@frontend.route('/missing')
def missing_template():
return render_template('missing_template.html')