<? /* example 7 demonstrates file includes */ require "xtpl.p"; $xtpl=new XTemplate ("ex7.xtpl"); $xtpl->assign(FILENAME,"ex7-inc.xtpl"); $xtpl->rparse("main.inc"); $xtpl->parse("main"); $xtpl->out("main"); ?>
info at phpclasses dot org