Add the ability to pre-process templates without subclassing

This is very useful for having easy to read templates and minify them before processing.