]> git.sesse.net Git - xml-template/blob - php5-swig/include.php
92b71d6dca4c07e897251b7f7b49df290bfdf24b
[xml-template] / php5-swig / include.php
1 <?php
2
3 dl("XML_Template_SWIG.so");
4 $doc = XML_Template_process_file('../xml/included.xml', array(
5         'color' => 'red'
6 ), false);
7 $master = XML_Template_process_file('../xml/master.xml', array(
8         'title' => 'Main HTML title',
9         'h1' => 'Nice heading here',
10         'contents' => $doc
11 ), true);
12 output_to_fd($master, 1);
13 ?>