|Classes of Alexey Dodonov||>||Mezon PHP HTML Template Engine||>||README.md||>||Download|
HTMP template class
First of all you need to create object
This code assumes that you have all template resources in the directory './main-template/'
But you can also specify a list of paths, and while template compilation they all will be scanned for static files.
No need to specify all paths in the constructor. You can do it later with methods:
But be carefull if you have static files with the same names on different paths. While compilation the file on the latest added path will be used. It was done so to create a sort of overriding mechanism for template resources.
Or you can completely reset all paths:
And view a list of paths: