Home - Leopard-Coding/Leopard-Template-Engine GitHub Wiki
About Leopard Template Engine
Leopard Template Engine supports the software architectural pattern MVC (Model-view-controller). You are able to easy extend the Leopard Template Engine and get additional methods to create the perfect website.
The software works with configuration variables in the file "LeopardTemplateEngine.class.php". There are three directories:
cache/ - Directory for cached files if "caching => true"
plugins/ - Directory for plugin files in PHP
templates/ - Directory for HTML templates
The names of these directories can be changed in the configuration variables.
Example: simple use the template engine:
// create the $Templates object
$Templates = new TemplateEngine;
// example fields to fill in the template
$Templates->headline = 'Example Headline';
$Templates->content = 'Example Content of My Site';
// the template file ([TEMPLATE_DIRECTORY]/home.[TEMPLATE_FILE_EXTENSION])
$Templates->display('home');