]> git.sesse.net Git - xml-template/blob - perl-sax/include.pl
Fix a potential bug in the C++0x cleaning.
[xml-template] / perl-sax / include.pl
1 #! /usr/bin/perl
2 use XML::TemplateSAX;
3
4 my $doc = XML::TemplateSAX::process_file_to_buffer('../xml/included.xml', {
5         'color' => 'red'
6 }, 0);
7 my $master = XML::TemplateSAX::process_file('../xml/master.xml', {
8         'title' => 'Main HTML title',
9         'h1' => 'Nice heading here',
10         'contents' => $doc
11 });
12 print $master;