Fix: Pass AllowedHandlebarsHelpers configuration to Handlebars.Net.Helpers (#1416)

Pass AllowedHandlebarsHelpers configuration to Handlebars.Net.Helpers so that optional handlebars helpers can be enabled.

Co-authored-by: Sam Latham <sam.latham@citrix.com>
This commit is contained in:
samlatham
2026-01-05 20:24:48 +00:00
committed by GitHub
parent 9cee6dde00
commit 0e60e3f3f9
2 changed files with 93 additions and 0 deletions

View File

@@ -39,6 +39,8 @@ internal static class WireMockHandlebarsHelpers
#endif
o.CustomHelperPaths = paths;
o.Categories = settings.HandlebarsSettings?.AllowedHandlebarsHelpers ?? HandlebarsSettings.DefaultAllowedHandlebarsHelpers;
o.CustomHelpers = new Dictionary<string, IHelpers>();
if (settings.HandlebarsSettings?.AllowedCustomHandlebarsHelpers.HasFlag(CustomHandlebarsHelpers.File) == true)
{