3 * Simple example rendering a user list
4 * ------------------------------------
6 * @credit - adapt from ptemplates sample
8 require "../lib/Haanga.php";
10 Haanga
::registerAutoload();
11 Haanga
::setCacheDir('tmp/');
12 Haanga
::setTEmplateDir('inheritance/');
14 $time_start = microtime(true);
16 Haanga
::Load('page.html', array(
17 'title' => microtime(TRUE),
20 'username' => 'peter',
21 'tasks' => array('school', 'writing'),
25 'username' => 'anton',
26 'tasks' => array('go shopping'),
30 'username' => 'john doe',
31 'tasks' => array('write report', 'call tony', 'meeting with arron'),
35 'username' => 'foobar',
42 echo "in ".(microtime(true) - $time_start)." seconds\n<br/>";