Imagine that I have a template that requests {{Foo}} but that property does not exist on the given model. Can Handlebars.Net be configured to report this problem to me? To me it looks like it just silently inserts an empty string and proceeds.
Is it possible for Handlebars.Net to report errors/warnings for missing properties?
432 views Asked by default.kramer At
1
The answer is yes:
This will throw an exception telling you that
MissingPropertywas missing.There is also the
UnresolvedBindingFormatterwhich can be used if you don't want to throw an exception.Related: The discussion on https://github.com/Handlebars-Net/Handlebars.Net/issues/143