コード例 #1
0
ファイル: app.py プロジェクト: 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
コード例 #2
0
ファイル: app.py プロジェクト: 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
コード例 #3
0
ファイル: app.py プロジェクト: 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