Added basic files

This commit is contained in:
Antonio de la Rosa 2019-12-15 20:40:51 +01:00
commit 114342bc9b
16 changed files with 1320 additions and 0 deletions

View file

@ -0,0 +1,20 @@
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)