StubbleOrg / Stubble

Trimmed down {{mustache}} templates in .NET
Other
399 stars 58 forks source link

SetIgnoreCaseOnKeyLookup does not work #120

Closed Meowzz95 closed 2 years ago

Meowzz95 commented 2 years ago
using Stubble.Core.Builders;

var renderer = new StubbleBuilder().Configure(builder =>
{
    builder.SetIgnoreCaseOnKeyLookup(true);
}).Build();

var d = new Dictionary<string, string>()
{
    { "someKey", "hello" },
    { "SomeOtherKey", "world" }
};

var template = "{{SomeKey}} {{SomeOtherKey}}";
var res = renderer.Render(template, d);
Console.Out.WriteLine(res);

The above sample code prints world

Expected: hello world

Version <PackageReference Include="Stubble.Core" Version="1.9.3" />

stan-sz commented 2 years ago

Related to #114

Romanx commented 2 years ago

Hey @Meowzz95, @stan-sz and @senneclaeskens

Thanks for your patience this has now been released to nuget as v1.10.8. Thanks for using stubble and letting us know about this