]> git.sesse.net Git - xml-template/blob - ruby/include.rb
Update the PHP SWIG version to PHP 7, with various crash fixes, too.
[xml-template] / ruby / include.rb
1 #! /usr/bin/ruby
2 require "xmltemplate"
3
4 doc = XMLTemplate.process_file("../xml/included.xml", {
5         "color" => "red"
6 }, false)
7 master = XMLTemplate.process_file("../xml/master.xml", {
8         "title" => "Main HTML title",
9         "h1" => "Nice heading here",
10         "contents" => doc
11 });
12 print master.to_s