Restored Template class.

This fixes a counterintuitive bug when compiling and rendering
a template inline. (Thanks, Eevee.)