Add HandlebarsSettings (#1271)

* Add HandlebarsSettings class

* DefaultAllowedHandlebarsHelpers

* HB - 2.5.0-preview-01

* readme

* fix

* readme

* Handlebars.Net.Helpers Version="2.5.0"
This commit is contained in:
Stef Heyenrath
2025-04-23 07:47:37 +02:00
committed by GitHub
parent beabba4064
commit fc0f82db33
13 changed files with 127 additions and 27 deletions

View File

@@ -40,9 +40,9 @@ internal static class WireMockHandlebarsHelpers
o.CustomHelperPaths = paths;
o.CustomHelpers = new Dictionary<string, IHelpers>();
if (settings.AllowedCustomHandlebarHelpers.HasFlag(CustomHandlebarHelpers.File))
if (settings.HandlebarsSettings?.AllowedCustomHandlebarsHelpers.HasFlag(CustomHandlebarsHelpers.File) == true)
{
o.CustomHelpers.Add(FileHelpers.Name, new FileHelpers(handlebarsContext, settings.FileSystemHandler));
o.CustomHelpers.Add(FileHelpers.Name, new FileHelpers(handlebarsContext, settings));
}
});
}