]> git.sesse.net Git - xml-template/blob - include.php
Add alternate() to the PHP version, which should now be rather feature-complete.
[xml-template] / include.php
1 <?php
2 require('xml-template.php');
3
4 $doc = XML_Template_process_file('included.xml', array(
5         'color' => 'red'
6 ));
7 $master = XML_Template_process_file('master.xml', array(
8         'title' => 'Main HTML title',
9         'h1' => 'Nice heading here',
10         'contents' => $doc
11 ));
12 print $master->dump_mem();
13 ?>