一个更优雅的模板库,为更文明的时代服务
cubictemp的Python项目详细描述
一个小巧、优雅的python模板系统。
功能
- Simple, well-tested and well-documented.
- Integrates tightly with Python - pass arbitrary Python objects into a template, walk sequences and iterators, evaluate expressions.
- Default escaping helps to prevent common classes of Cross-Site Scripting vulnerabilities.
- Encourages separation of interface and program logic by disallowing statements in templates.
- Tiny - only ~ 170 SLOC. There are many large, over-designed Python templating systems out there. Cubictemp proves that a templating sytem can be complete, elegant, powerful, fast and remain compact.
cubictemp需要python 2.4或更新版本。