def f(): content = file(_f).read() if render: content = to_html(template(content, env=application.get_view_env())) else: content = to_html(content) return application.template('show_document.html', locals())
def html(self): from uliweb import application return application.template(self.layout, self.vars)
def f(): content = file(_f).read() return application.template('show_txt.html', locals())