Added basic files
This commit is contained in:
commit
114342bc9b
16 changed files with 1320 additions and 0 deletions
20
paramecio2/modules/welcome/app.py
Normal file
20
paramecio2/modules/welcome/app.py
Normal 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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue