The template engine can realize the ease of use of daily website management, the arbitrariness of template customization, and the independence of program templates, etc., which meets the needs of personalized website development. The template engine uses template code separation technology to layer website management functions, template production and front-end templates. Below, IDC Review Network will share with you 8 template engines.
1.Smarty
Smarty is a template engine written in PHP and is currently one of the most famous PHP template engines in the industry. It separates logical code and external content, providing an easy-to-manage and use method to separate PHP code logic that is originally mixed with HTML code.
2. Template Lite
Template Lite is a very fast and small HTML template engine. The engine supports most of the features and filters that the Smarty template engine has.
3.XTemplate
XTemplate is a template engine for PHP. It allows HTML code to be stored separately from PHP code. Contains many useful features such as nested program blocks, various types of interpolation variables. The code is very concise and optimized.
4. Savant
Savant is a powerful yet lightweight object-oriented PHP template engine. Use PHP itself as the template language so there is no need to learn a new markup system. It has an object-oriented template plug-in system and output filters to quickly add new behaviors.
5.Phemplate
Phemplate is a simple and fast PHP template engine. It allows adding variables and some dynamic blocks including loops to the template. The template engine can separate presentation from logic, and designers can change HTML at will without worrying about messing up PHP scripts.
6. Dwoo
Dwoo is a PHP5 template engine. Compatible with Smarty templates, it is completely rewritten based on Smarty syntax. Supports extending its functionality through plug-ins.
7. Twig
Twig is a flexible, fast and secure PHP template language. It compiles templates into optimized raw PHP code. Have a sandbox model to evaluate untrusted template code. Consists of a flexible lexer and parser that allows developers to define their own tags, filters and create their own DSL.
8.FXL Template
FXL Template is an easy-to-use template engine that provides all the basic functions of a template system. Supports simple text/array allocation, blocks and nested blocks. Has good regular expressions and simple template syntax for the fastest possible template processing.
Original address: http://www.idcps.com/News/20110118/22863.html (If you need to reprint, please indicate the source)
Thanks to IDC Review Network for your contribution