]> git.sesse.net Git - xml-template/blobdiff - ruby/attribute-empty.rb
Hand-merge from borked repository. Main changes are a Ruby version (with
[xml-template] / ruby / attribute-empty.rb
diff --git a/ruby/attribute-empty.rb b/ruby/attribute-empty.rb
new file mode 100644 (file)
index 0000000..0476b9d
--- /dev/null
@@ -0,0 +1,8 @@
+#! /usr/bin/ruby
+require "xmltemplate"
+
+doc = XMLTemplate.process_file("../xml/clone.xml", {
+       'color' => 'blue',
+       '#things' => []
+});
+print doc.to_s