Implemented TemplateGeneratorTemplate class. refs #418