Esempio n. 1
0
 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())
Esempio n. 2
0
    def html(self):
        from uliweb import application

        return application.template(self.layout, self.vars)
Esempio n. 3
0
 def f():
     content = file(_f).read()
     return application.template('show_txt.html', locals())
Esempio n. 4
0
 def html(self):
     from uliweb import application
     
     return application.template(self.layout, self.vars)