Add Template CompileFile and tests