Skip to content

Is Handlebars.Net case sensitive again? #362

Description

There are a few places that mention that Handlebars.Net is supposed to be case insensitive as of v1.6.6 but I can't seem to get it to act that way.

Am I doing something wrong in the code? Below is a basic example of what I'm doing

var templateString = "Dear {{displayName}}";
var template = Handlebars.Compile(templateString);

var data = new ExpandoObject();
data.TryAdd("DisplayName", "John");

var output = template(data);

Console.WriteLine(output);

This just results in Dear .
If I change templateString to be "Dear {{DisplayName}}" it would print Dear John

This is using the NuGet package v1.10.1 on a .NET Core 3.1 console application.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions