Differences between revisions 4 and 5
Revision 4 as of 2008-09-20 12:10:24
Size: 2152
Editor: HuangYi
Comment:
Revision 5 as of 2008-09-20 12:11:42
Size: 2105
Editor: HuangYi
Comment:
Deletions are marked like this. Additions are marked like this.
Line 24: Line 24:
[http://jinja.pocoo.org/ http://jinja.pocoo.org/static/jinjabanner.png] http://jinja.pocoo.org/

status

草稿

清风; 100%

TableOfContents

Pyhton 模板系统

GenShi

http://genshi.edgewall.org

  • 特点:解释型模板,纯粹面向 xml,流式的处理机制,能够嵌入 python 语句和表达式,提供强大的功能。
  • 从 Kid 发展而来,比 Kid 更灵活,性能也更好,实现部分 XPath,XInclude 规范。
  • TurboGears2.0 也将默认的模板引擎从 Kid 转为 GenShi

MaKo

http://www.makotemplates.org/

  • 特点:编译型模板,卓越的性能,将 Python 语言优雅得植入模板中,功能强大。
  • 由 Myghty 发展而来,是对 Myghty 的重新设计和重新实现,类似 GenShi 和 Kid 的关系。

  • PyLons 默认的模板引擎从 Myghty 转为 MaKo

JinJa

http://jinja.pocoo.org/

ClearSilver

ClearSilver是一个高性能的模版系统,让我们看看他的使用网站,就知道他的表现有多好。

  • Bloglines
  • Google Groups
  • Yahoo Groups

http://www.clearsilver.net/img/misc/Clearsilver-Architecture.gif

其它

PyWork - [http://pywork.sourceforge.net/ http://pywork.sourceforge.net]

Cheetah - http://www.unrealtower.org/mycheetah

Subway - http://subway.python-hosting.com/

Spyce - [http://spyce.sf.net/ http://spyce.sf.net]

ObpLovelyPython/PCS309 (last edited 2009-12-25 07:14:11 by localhost)