/// <summary> /// Renders a template to the specified <paramref name="textWriter"/> /// </summary> /// <param name="templatePage">Instance of a template</param> /// <param name="model">Template model</param> /// <param name="modelType">Type of the model</param> /// <param name="viewBag">Dynamic viewBag of the page</param> /// <param name="textWriter">Output</param> public Task RenderTemplateAsync <T>( ITemplatePage templatePage, T model, TextWriter textWriter, ExpandoObject viewBag = null) { return(_handler.RenderTemplateAsync(templatePage, model, textWriter, viewBag)); }
/// <summary> /// Renders a template with a given model /// </summary> /// <param name="templatePage">Instance of a template</param> /// <param name="model">Template model</param> /// <param name="viewBag">Dynamic viewBag of the template</param> /// <returns>Rendered string</returns> public Task <string> RenderTemplateAsync <T>(ITemplatePage templatePage, T model, ExpandoObject viewBag = null) { return(_handler.RenderTemplateAsync(templatePage, model, viewBag)); }
public Task RenderTemplateAsync <T>(ITemplatePage templatePage, T model, TextWriter textWriter, object initData = null, ExpandoObject viewBag = null) { return(fHandler.RenderTemplateAsync(templatePage, model, textWriter, initData, viewBag)); }