2011-10-13 8 views

答えて

2

このツールを使用すると、jingaテンプレートを使用して応答をレンダリングできます。使用法をお読みください。

@cherrypy.expose 
@cherrypy.tools.jinja(filename='index.html') 
def controller(**kwargs): 
    return { 

    } # This dict is the template context