Dwoo
Dwoo是一个PHP5模板引擎。兼容Smarty模板,它在Smarty语法的基础上完全进行重写。支持通过插件扩展其功能。
Dwoo is a PHP5 template engine positioned as an alternative to Smarty, it is (nearly) fully compatible with its templates and plugins, but it is written from scratch and aimed at going one step further with a cleaner codebase.
Features
- 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)