public Task <string> CompileRenderAsync <T>(string key, T model, object initData = null, ExpandoObject viewBag = null) { return(fHandler.CompileRenderAsync(key, model, initData, viewBag)); }
/// <summary> /// Compiles and renders a template with a given <paramref name="key"/> /// </summary> /// <typeparam name="T">Type of the model</typeparam> /// <param name="key">Unique key of the template</param> /// <param name="model">Template model</param> /// <param name="viewBag">Dynamic viewBag of the template</param> /// <returns>Rendered template as a string result</returns> public Task <string> CompileRenderAsync <T>(string key, T model, ExpandoObject viewBag = null) { return(_handler.CompileRenderAsync(key, model, viewBag)); }
/// <summary> /// Compiles and renders a template with a given <paramref name="key"/> /// </summary> /// <typeparam name="T">Type of the model</typeparam> /// <param name="key">Unique key of the template</param> /// <param name="model">Template model</param> /// <param name="viewBag">Dynamic viewBag of the template</param> /// <returns>Rendered template as a string result</returns> public Task <string> CompileRenderAsync <T>(string key, T model, ExpandoObject viewBag = null, bool isEncoding = true) { return(_handler.CompileRenderAsync(key, model, viewBag, isEncoding)); }