Exemple #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())
Exemple #2
0
    def html(self):
        from uliweb import application

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