Handlebars-Net / Handlebars.Net

A real .NET Handlebars engine
MIT License
1.26k stars 217 forks source link

Advice needed on 'HandlebarsConfiguration.UnresolvedBindingFormatter' is obsolete #421

Closed StefH closed 3 years ago

StefH commented 3 years ago

I get this message

'HandlebarsConfiguration.UnresolvedBindingFormatter' is obsolete: 'Register custom formatters using `Formatters` property'

With this c# code:

private static readonly HandlebarsConfiguration HandlebarsConfiguration = new HandlebarsConfiguration
        {
            UnresolvedBindingFormatter = "{0}"
        };
oformaniuk commented 3 years ago

Hello @StefH See Register custom value formatter section of the readme. Default implementation for UndefinedBindingResult you can find in UndefinedFormatter.cs

StefH commented 3 years ago

Thanks