]> git.sesse.net Git - xml-template/blob - php4/include.php
Rename php -> php4.
[xml-template] / php4 / include.php
1 <?php
2 require('xml-template.php');
3
4 $doc = XML_Template_process_file('../xml/included.xml', array(
5         'color' => 'red'
6 ), 0);
7 $master = XML_Template_process_file('../xml/master.xml', array(
8         'title' => 'Main HTML title',
9         'h1' => 'Nice heading here',
10         'contents' => $doc
11 ));
12 print $master->dump_mem();
13 ?>