/// <summary> /// Parses the given template and returns the result. /// </summary> /// <typeparam name="T">The model type.</typeparam> /// <param name="template">The template to parse.</param> /// <param name="model">The model.</param> /// <param name="name">[Optional] The name of the template. This is used to cache the template.</param> /// <returns>The string result of the parsed template.</returns> public static string Parse <T>(string template, T model, string name = null) { return(DefaultTemplateService.Parse <T>(template, model, name)); }
/// <summary> /// Parses the given template and returns the result. /// </summary> /// <param name="template">The template to parse.</param> /// <param name="name">[Optional] The name of the template. This is used to cache the template.</param> /// <returns>The string result of the parsed template.</returns> public static string Parse(string template, string name = null) { return(DefaultTemplateService.Parse(template, name)); }