예제 #1
0
 public IRazorTemplate ExecuteTemplate <T>(T model)
 {
     return(RazorFormat.ExecuteTemplate(model, this.PageName, this.Template));
 }
예제 #2
0
        public string RenderToString <T>(T model)
        {
            var template = RazorFormat.ExecuteTemplate(model, this.PageName, this.Template);

            return(template.Result);
        }