Split out template rendering

* Mangling gt/lt should happen after rendering
* Nokogiri was parsing the output after mangling
Bump to 0.7.2