public HandlebarsEnvironment(HandlebarsConfiguration configuration) { if (configuration == null) { throw new ArgumentNullException(nameof(configuration)); } _compiler = new HandlebarsCompiler(configuration); Configuration = configuration; RegisterBuiltinHelpers(); }
public static IHandlebars Create(HandlebarsConfiguration configuration = null) { configuration = configuration ?? new HandlebarsConfiguration(); return(new HandlebarsEnvironment(configuration)); }
static HandlebarsConfiguration() { instance = new HandlebarsConfiguration(); instance.GetFromFile(); }