【发布时间】:2011-12-07 09:12:04
【问题描述】:
【问题讨论】:
-
你被什么弄糊涂了?如何加载它以便在 CherryPy 中注册?或者加载后如何使用该工具?到目前为止,您尝试过什么?
【问题讨论】:
此工具允许您使用jinga 模板呈现您的响应。阅读用法...
@cherrypy.expose
@cherrypy.tools.jinja(filename='index.html')
def controller(**kwargs):
return {
} # This dict is the template context
【讨论】: