コード例 #1
0
 public HandlebarsTemplateSet(string directoryPath)
 {
     HandlebarsDirectories = new HashSet <HandlebarsDirectory>();
     HandlebarsDirectories.Add(new HandlebarsDirectory(directoryPath));
     HandlebarsEmbeddedResources = new HandlebarsEmbeddedResources(Assembly.GetExecutingAssembly());
     _renderer = new HandlebarsTemplateRenderer(HandlebarsEmbeddedResources, HandlebarsDirectories.ToArray());
 }
コード例 #2
0
 public HandlebarsTemplateSet(Assembly embeddedResourceContainer)
 {
     HandlebarsDirectories       = new HashSet <HandlebarsDirectory>();
     HandlebarsEmbeddedResources = new HandlebarsEmbeddedResources(embeddedResourceContainer);
     _renderer = new HandlebarsTemplateRenderer(HandlebarsEmbeddedResources, HandlebarsDirectories.ToArray());
 }