from flask import Blueprint, render_template from settings import config from paramecio2.libraries.mtemplates import PTemplate, env_theme env=env_theme(__file__) t=PTemplate(env) welcome_app=Blueprint('welcome_app', __name__) @welcome_app.route('/welcome') def home(): return t.load_template('welcome.phtml', title="Welcome", content='Welcome to the real world') #return render_template('welcome.html', title="Welcome") if config.default_module=="welcome": home=welcome_app.route("/")(home)