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 syntax parser, so the {if...} expression is simple or compound. If allowed, the engine can be infinitely nested between sections. Customizable. PHP code can be embedded into your template file, although this may not be necessary (not recommended)
Built-in cache supports independent template files and customizable cache processing function plug-in architecture
Expand