Simple template engine

Installs: 35

Dependents: 1

Suggesters: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

v1.2.4 2013-06-26 06:02 UTC


laiz/template is simple template engine that is developed with PHP5.3.


Add cache directory in project directory:

cd public_html
mkdir cache
chmod o+w cache

Include Template.php or Parser.php file:

cat > index.php
require_once 'Laiz/Template/Parser.php';
$t = new Laiz\\Template\\Parser();
$vars = new StdClass();
$vars->foo = 'World!';

Add template file of top page:

mkdir template
echo 'Hello {foo}' > template/index.html