Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

document xml functionality

  • Loading branch information...
commit 42f769cc8a71d7ffb82ea1a81118d7af735a54a8 1 parent cfa0906
@jbr authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 README.textile
View
6 README.textile
@@ -21,7 +21,6 @@ It's a whole lot like @.xml.builder@, only it's @.json.argonaut@. Make an appro
end
end
end
-
</code></pre>
Which is identical to
@@ -43,3 +42,8 @@ end
</code></pre>
Just a little code kata, not really sure that the former is actually prettier.
+
+
+h2. XML too
+
+The name makes less sense and it's not really better than Builder, but you can do @.xml.argonaut@ as well now. It's the equivalent of calling @to_xml(:root => 'response')@ on the above hash. In theory, the same file could be used for @.xml.argonaut@ and @.json.argonaut@, but it's not obvious how to tell the template handler system to reuse a template. Maybe soon.
Please sign in to comment.
Something went wrong with that request. Please try again.