cherrypy-jinja2-2.2
توضیحات
CherryPy tool to render output through Jinja2 templates
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | cherrypy-jinja2-2.2 |
| نام | cherrypy-jinja2 |
| نسخه کتابخانه | 2.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Graham Clinch |
| ایمیل نویسنده | g.clinch@lancaster.ac.uk |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/cherrypy-jinja2/ |
| مجوز | - |
CherryPy-Jinja2
===============
CherryPy-Jinja2 is a simple CherryPy Tool to render output via Jinja2 templates.
Import `cherrypy_jinja2` to make the tool available in CherryPy's default toolbox.
Set `tools.jinja2.search_path` to a directory containing Jinja2 template files,
then attach the tool to exposed methods:
class Root:
@cherrypy.expose
@cherrypy.tools.jinja2(template="index.html")
def index(self):
return {'message': "Hello"}
نیازمندی
| مقدار | نام |
|---|---|
| - | CherryPy |
| - | Jinja2 |
نحوه نصب
نصب پکیج whl cherrypy-jinja2-2.2:
pip install cherrypy-jinja2-2.2.whl
نصب پکیج tar.gz cherrypy-jinja2-2.2:
pip install cherrypy-jinja2-2.2.tar.gz