PHP模板引擎 Dwoo

openkk 13年前發布 | 30K 次閱讀 PHP 模板引擎

Dwoo 是一個 PHP5 的模板引擎,與 Smarty 類似,兼容 Smarty 的模板和插件。smarty是一個基于PHP開發的PHP模板引擎。它提供了邏輯與外在內容的分離,簡單的講,目的就是要使 用PHP程序員同美工分離,使用的程序員改變程序的邏輯內容不會影響到美工的頁面設計,美工重新修改頁面不會影響到程序的程序邏輯,這在多人合作的項目中 顯的尤為重要。

  • Template Inheritance, a fresh look at complex template structures, now built without includes
  • Sub-template declaration within templates to allow recursive templates.
  • Smarty syntax compatibility with several additions and shortcuts to speed up template writing
  • Flexible plugin creation, plugins can be wrapped in classes or simple functions, they can be precompiled to optimize the load time of the template, etc.
  • Scope aware engine, allowing for shorter templates
  • Unicode / UTF-8 support for string manipulation functions.
  • Generally faster than Smarty with variable speed improvements depending on the features used.
  • E_STRICT compliant code that does not throw PHP warnings.
  • Ready to use with several frameworks using the provided adapters (ZendFramework, Agavi, CakePHP, CodeIgniter)

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

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