Abstract template rendering out

This allows us to print the contents of the template once, ensuring we
can use it instructionally.