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
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
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