public HandlebarsTemplateSet(string directoryPath) { HandlebarsDirectories = new HashSet <HandlebarsDirectory>(); HandlebarsDirectories.Add(new HandlebarsDirectory(directoryPath)); HandlebarsEmbeddedResources = new HandlebarsEmbeddedResources(Assembly.GetExecutingAssembly()); _renderer = new HandlebarsTemplateRenderer(HandlebarsEmbeddedResources, HandlebarsDirectories.ToArray()); }
public HandlebarsTemplateSet(Assembly embeddedResourceContainer) { HandlebarsDirectories = new HashSet <HandlebarsDirectory>(); HandlebarsEmbeddedResources = new HandlebarsEmbeddedResources(embeddedResourceContainer); _renderer = new HandlebarsTemplateRenderer(HandlebarsEmbeddedResources, HandlebarsDirectories.ToArray()); }