TemplateCompiler WIP