コード例 #1
0
ファイル: views.py プロジェクト: kadefor/testdoc
 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())
コード例 #2
0
    def html(self):
        from uliweb import application

        return application.template(self.layout, self.vars)
コード例 #3
0
ファイル: views.py プロジェクト: kadefor/kadeforDoc
 def f():
     content = file(_f).read()
     return application.template('show_txt.html', locals())
コード例 #4
0
ファイル: template_layout.py プロジェクト: 08haozi/uliweb
 def html(self):
     from uliweb import application
     
     return application.template(self.layout, self.vars)