Example #1
0
        //TODO: Configuration and Template from freemarker is now visible.
        private string Process(TemplateStandard standard, TemplateParameters parameters)
        {
            try
            {
                var templateFilename = standard.RetrieveTemplateFilename(parameters);

                var templatePath = string.Format(_templatePathPattern, templateFilename);

                //var template = TemplateProcessorConfiguration.Instance().configuration.GetTemplate(templatePath);

                var writer = new StringWriter();
                //template.process(parameters.map(), writer);
                return(writer.ToString());
            }
            catch (IOException exception)
            {
                throw new CodeGenerationException(exception);
            }
            //catch (TemplateException exception)
            //    throw new CodeGenerationException(exception);
            //}
        }
Example #2
0
 public void HandleDependencyOutcome(TemplateStandard standard, string outcome) => throw new NotSupportedException("Unable to handle dependency outcome");