public static TemplateEngine GetDefault() { string templatesPath = HostingEnvironment.MapPath("~/templates/emails"); ITemplateProvider templateProvider = new FileSystemTemplateProvider(templatesPath); ITemplateParser templateParser = new MustacheTemplateParser(); return(new TemplateEngine(templateProvider, templateParser)); }
public static TemplateEngine GetDefault() { string templatesPath = HostingEnvironment.MapPath("~/templates/emails"); ITemplateProvider templateProvider = new FileSystemTemplateProvider(templatesPath); ITemplateParser templateParser = new MustacheTemplateParser(); return new TemplateEngine(templateProvider, templateParser); }