Archive for February, 2009
Simple Template Engine – your lightweight templating engine in PHP
Monday, February 2nd, 2009The Simple Template Engine is a very lightweight template engine to use in PHP if your webhost does not allow you to run something like Smarty. It is simple, lightweight and fast.
To parse a file:
<?php
// include simple template engine
include("tpl.class.php");
$tpl = new template();
$tpl->assign(Array(‘content’=>"Hello World from Simple Template Engine!"));
// If you want to display it directly
$tpl->display(‘example.tpl’);
// If [...]
