Exemplo n.º 1
0
Arquivo: app.py Projeto: 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
Exemplo n.º 2
0
Arquivo: app.py Projeto: 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
Exemplo n.º 3
0
Arquivo: app.py Projeto: 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