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