PHP模版引擎 Templum

openkk 12年前發布 | 14K 次閱讀 PHP 模板引擎

Templum 是一個超輕量級的、高速的而且功能強大的 PHP 模版引擎,它重用了 PHP 本身的強大功能,提供了附加的特性以簡化模版的編寫。

PHP模版引擎 Templum

功能特性:

  • Lightweight. About 140 lines of code (excluding ±140 lines of API comments).
  • Re-uses PHP alternative syntax for clarity and full power. (You can also use normal syntax)
  • Very fast. Renders 10,000 templates in 0.741s (Native PHP takes 0.633s).
  • I18N (translated) templates.(Example, Documentation)
  • Per-session caching of rendered templates.
  • Inheritance. (Example, Documentation)
  • Including other templates. (Example, Documentation)
  • Security by automatic encoding of HTML entities. (Documentation)
  • Universal, global and local variables. (Documentation)
  • PHP v4 and v5 support.

項目主頁:http://www.baiduhome.net/lib/view/home/1322988445780

 本文由用戶 openkk 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!