Exemple #1
0
            public HandlebarsEnvironment(HandlebarsConfiguration configuration)
            {
                if (configuration == null)
                {
                    throw new ArgumentNullException("configuration");
                }

                _configuration = configuration;
                _compiler      = new HandlebarsCompiler(_configuration);
                RegisterBuiltinHelpers();
            }
 public static IHandlebars Create(HandlebarsConfiguration configuration = null)
 {
     configuration = configuration ?? new HandlebarsConfiguration();
     return(new HandlebarsEnvironment(configuration));
 }