用户工具

站点工具


Command disabled: resendpwd
template:jinjia

Python Jinja 模板

Jinja是基于python的模板引擎,功能比较类似于于PHP的smarty,J2ee的Freemarker和velocity。

JinJa基本用法

>>> from Jinja2 import Template
>>> template = Template('Hello {{ name }}!')
>>> template.render(name='World')
u'Hello World!'

Jinja相关文章

参考

template/jinjia.txt · 最后更改: 2011/02/11 04:39 (外部编辑)