]> git.sesse.net Git - xml-template/blobdiff - php5-swig/include.php
In php5-swig, replace the output_by_fd() hack with a function that allows conversion...
[xml-template] / php5-swig / include.php
index 92b71d6dca4c07e897251b7f7b49df290bfdf24b..69ee5132bcd86f0f5dea18bdd7bd4a95a4179e27 100644 (file)
@@ -1,6 +1,6 @@
 <?php
+include("xml-template.php");
 
-dl("XML_Template_SWIG.so");
 $doc = XML_Template_process_file('../xml/included.xml', array(
        'color' => 'red'
 ), false);
@@ -9,5 +9,5 @@ $master = XML_Template_process_file('../xml/master.xml', array(
        'h1' => 'Nice heading here',
        'contents' => $doc
 ), true);
-output_to_fd($master, 1);
+print XML_Template_convert_doc_to_string($master);
 ?>