Updated NNF to work with latest DOMTemplate changes.
DOMTemplate now outputs by casting the template object to a string (i.e. `echo $template;`) instead of separate `html` and `xml` properties.