Smarty is a template engine in PHP project development. To be precise, it realizes the separation of program and interface. Therefore, programmers can change the logic without rebuilding the template. Template designers can change the template without affecting the logic. Some features of Smaty:
Very very fast!
It is effective to use the PHP parser to do this chore without the need for redundant template syntax parsing. It only compiles once and only recompiles the modified template file to edit custom functions and custom variables. Therefore, this template language can completely Extensions can set template delimiters themselves, so you can use {}, {{}}, , etc. statements such as if/elseif/else/endif can be passed to the PHP parser , so {if...} expressions are simple or compound. If allowed, sections can be nested infinitely. The engine can be customized. PHP code can be embedded into your template file, although this may not be possible. Not required (not recommended)
The built-in cache supports independent template files and can customize the cache processing function plug-in architecture. Download the Smarty manual: http://www.codepub.com/software/SmartyTemplates-12990.html
Read Smarty articles: http://edu.codepub.com/tag.php?tag=Smarty
Expand