define( array( main => "main.tpl", table => "table.tpl", row => "row.tpl" ) ); $tpl->cache_expire (main, 20); if (!$tpl->is_cached (MAIN, "main")) { print "

Not Cached

"; $tpl->assign( array( TITLE => "FastTemplate Test") ); for ($n=1; $n <= 3; $n++) { $Number = $n; $BigNum = $n*10; $tpl->assign( array( NUMBER => $Number, BIG_NUMBER => $BigNum ) ); $tpl->parse(ROWS,".row"); } $tpl->parse(MAIN, "table"); $tpl->parse(MAIN, "main"); $tpl->write_cache(MAIN, main); } else { print "

Cached

"; } $tpl->FastPrint(); ?>