| // +--------------------------------------------------------------------+ // // $Id$ // // This is a simple test and example of HTML_Template_HIT $tmp = ini_get('include_path'); ini_set('include_path', "..:$tmp"); unset($tmp); umask('002'); require_once 'HTML/Template/HIT.php'; $hit =& new HTML_Template_HIT('hooks'); for ($i = 0; $i < 20; $i++) { for ($j = 0; $j < 20; $j++) { $hit->parseBuffered('cell', 'CELL', "$i,$j"); } $hit->parseBuffered('row', 'ROW', $hit->popBuffer('cell')); } echo $hit->parse( 'body', array( 'ROWS' => $hit->popBuffer('row'), 'TITLE' => 'HOLA MUNDO!!!', ) ); ?>