// Copyright © WireMock.Net using HandlebarsDotNet.Helpers.Enums; using JetBrains.Annotations; using WireMock.Types; namespace WireMock.Settings; /// /// HandlebarsSettings /// [PublicAPI] public class HandlebarsSettings { internal static readonly Category[] DefaultAllowedHandlebarsHelpers = [ Category.Boolean, Category.Constants, Category.DateTime, Category.Enumerable, Category.Humanizer, Category.JsonPath, Category.Math, Category.Object, Category.Random, Category.Regex, Category.String, Category.Url, Category.Xeger, Category.XPath, Category.Xslt ]; /// /// Defines the allowed custom HandlebarsHelpers which can be used. Possible values are: /// - (Default) /// - /// - /// [PublicAPI] public CustomHandlebarsHelpers AllowedCustomHandlebarsHelpers { get; set; } = CustomHandlebarsHelpers.None; /// /// Defines the allowed HandlebarHelpers which can be used. /// /// By default, all categories except and are registered. /// [PublicAPI] public Category[] AllowedHandlebarsHelpers { get; set; } = DefaultAllowedHandlebarsHelpers; }