Пример #1
0
        public void WriteResultHtml()
        {
            string template = System.IO.File.ReadAllText("MetricsReport.chtml");
            var    vm       = new MetricsReportViewModel();

            vm.Proyectos = Proyectos.ToList();
            vm.Config    = Config;

            var result = Engine.Razor.RunCompile(template, "templateKey", typeof(MetricsReportViewModel), vm);

            System.IO.File.WriteAllText(Config.OutputFile, result);
        }