Beispiel #1
0
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
Beispiel #2
0
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
Beispiel #3
0
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