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