| // +--------------------------------------------------------------------+ // // $Id$ // // This is a simple test and example of HTML_Template_HIT ini_set('include_path', '../src:'.ini_get('include_path')); 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!!!', ) ); ?>