jdiamond/Nustache — pull request #45 by bruce-lindsay (2012-12-12 18:25:06+00:00)
Title: Updated XML handling a bit

I noticed when i pulled down the project, built nustache.exe, and executed the test template against the test xml, the xml values were not substituted properly. I tried to improve this. Please let me know what you think and integrate if you'd like to. Thanks very much! More details below

Templating
> nustache.exe test.nustache test.xml foo.txt

Output
> type foo.txt
Hello
You have just won $System.Xml.XPathNodeList!
!!!

In my change

a
b

{{#d}}
{{.}}
{{/d}

would render a b

text

{{c}}

would render text

And test template renders

Hello Chris
You have just won $10000!
Well, $9600, after taxes.
!!!