views.py 215 B

123456789101112
  1. from flask import Blueprint, render_template
  2. bp = Blueprint('views', __name__)
  3. @bp.route('/')
  4. def home():
  5. return 'hello world!!'
  6. @bp.route('/template')
  7. def template():
  8. return render_template('home.html')