XTpl is committed to the smallest, fastest, and most powerful PHP template engine (refer to Smarty, SlightPHP, ECShop, DZ, etc. for development)
Features:
Compact and powerful, fast and efficient (only one class file, including 5K comments)
Easy to learn, no development documents like books (8K txt help document)
Supports native PHP code, template code writing standards are easy to remember
System requirements PHP5.0 or above (simple modification can support PHP4)
I think XTpl has completely surpassed template engines such as Smarty, DZ, and ECShop!
Catalog description:
cache/ is the template cache directory in the example. Linux servers need to be set to be writable.
templates/ template directory in the example
templates/default is the default template in the example. A website or system may have N templates.
The files in this directory are template files, and the file suffix can be arbitrary or none.
templates/default/blog The default template in the example is the blog channel template under default. Of course, the blog directory is completely unnecessary. !!!! Note: A certain template directory only supports one level of subordinate directories.
The files in this directory are template files, and the file suffix can be arbitrary or none.
XTpl/XTpl.class.php XTpl template engine core class file
index.php sample program
Usage and template syntax:
Please refer to the txt usage help in the download package