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

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