首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Python > 下颊快速扩展的Python风格的模板引擎

下颊快速扩展的Python风格的模板引擎

资 源 简 介

Templum - fast, extensible and intuitive template engine. Available on Python and PHP. **7 September 2010** - we start create new template engine inspired by Django. We want to create easy to use Python-style template engine. Syntax overview variable is a [var_name] and functions is a {func_name} math in place [user_age - 20] or {get_date_year - 2000} access to properties or call method [user.name] or {get_current_user.is_active} filters this is a functions separated with pipe [article.text | escape] and many filters [article.text | crop 70 | escape] call methods with parameters {dateformat artile.added "DD-MM-YYYY"}[artile.added | dateformat "DD-MM-YYYY"]{date format="DD-MM-YYYY"}

文 件 列 表

Templum-1.0beta2
Compiler.php
Component
Templum.php
tests
unit-tests

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP