Example #1
0
 private static string TransformModel(NamedModel model, string template)
 {
     if (model == null) throw new ArgumentNullException("model");
     if (template == null) throw new ArgumentNullException("template");
     var compiler = new FormatCompiler();
     var generator = compiler.Compile(File.ReadAllText(template));
     return generator.Render(model);
 }
 public ComposeNamedModelVisitor()
 {
     _model = new NamedModel();
 }