]> git.sesse.net Git - xml-template/blobdiff - ruby/simple.rb
Hand-merge from borked repository. Main changes are a Ruby version (with
[xml-template] / ruby / simple.rb
diff --git a/ruby/simple.rb b/ruby/simple.rb
new file mode 100644 (file)
index 0000000..3b68b1c
--- /dev/null
@@ -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