Esempio n. 1
0
File: app.py Progetto: Roger/dxhttp
def index(environ, start_response):
    tpl = html.new(template='index.html')
    navbar(tpl)

    content = tpl.html.getElementById("content")
    content.text("Select one of the demos above")
    return tpl
Esempio n. 2
0
File: app.py Progetto: Roger/dxhttp
def get_demo(environ, start_response, module):
    tpl = html.new(template='index.html')
    navbar(tpl)

    content = tpl.html.getElementById("content")
    utils.get_mod(module, "demos").main(environ, content)
    return tpl
Esempio n. 3
0
File: app.py Progetto: dequis/dxhttp
def index(environ, start_response):
    tpl = html.new('html')
    tpl.html.add('head').add('title', 'dxhttp')
    tpl.html.add('body').add('h1', 'It works!')
    return tpl