X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=ruby%2Fsimple.rb;fp=ruby%2Fsimple.rb;h=3b68b1c65f9c406cf33b6756b6a0636cb11a8bf8;hb=7d86bc42d79ffdf9a9bd601716c2f832a123a1ce;hp=0000000000000000000000000000000000000000;hpb=0b5e750eae0d8d58ae293beeaf29368431d5b618;p=xml-template diff --git a/ruby/simple.rb b/ruby/simple.rb new file mode 100644 index 0000000..3b68b1c --- /dev/null +++ b/ruby/simple.rb @@ -0,0 +1,8 @@ +#! /usr/bin/ruby +require "xmltemplate" + +doc = XMLTemplate.process_file("../xml/simple.xml", { + 'title' => 'A very basic example', + '#hello' => 'Hello world!' +}) +print doc.to_s