Beispiel #1
0
 public Task <string> CompileRenderAsync <T>(
     string key,
     string content,
     T model,
     ExpandoObject viewBag)
 {
     return(_handler.CompileRenderStringAsync(key, content, model, viewBag));
 }
 /// <summary>
 /// Compiles and renders a template. Template content is taken directly from <paramref name="content"/> parameter
 /// </summary>
 /// <typeparam name="T">Type of the model</typeparam>
 /// <param name="key">Unique key of the template</param>
 /// <param name="content">Content of the template</param>
 /// <param name="model">Template model</param>
 /// <param name="viewBag">Dynamic ViewBag</param>
 public Task <string> CompileRenderStringAsync <T>(
     string key,
     string content,
     T model,
     ExpandoObject viewBag = null,
     bool isEncoding       = true)
 {
     return(_handler.CompileRenderStringAsync(key, content, model, viewBag, isEncoding));
 }
Beispiel #3
0
 public Task <string> CompileRenderStringAsync <T>(string key, string content, T model,
                                                   object initData = null, ExpandoObject viewBag = null)
 {
     return(fHandler.CompileRenderStringAsync(key, content, model, initData, viewBag));
 }