public void Process(CodeGenerationContext context) { BuildTemplatesData(context).ForEach(templateData => { var code = TemplateProcessor.Instance().Process(templateData); context.registerTemplateProcessing(templateData, code); }); }
public static TemplateProcessor Instance() { if (_instance == null) { _instance = new TemplateProcessor(); } return(_instance); }