Closed foconnor-DS closed 1 year ago
@foconnor-DS I'll investigate.
(Do you know if the default Handlebars.Net does support dynamic)?
@foconnor-DS This works fine:
[Fact]
public void TitleCase_Dynamic()
{
// Arrange
var data = new Dictionary<string, dynamic>
{
{ "FirstName", "jill" }
};
var test = "{{[String.Titlecase] [FirstName]}}";
var action = _handlebarsContext.Compile(test);
// Act
var result = action(data);
// Assert
result.Should().Be("Jill");
}
Am I missing something?
This throws:
I notice all the unit tests and examples are using string literals. Are these helpers supposed to work with dynamic varibles?