Skip to content

Request: "strict" lookups #805

Closed
@nzakas

Description

@nzakas

One thing that has bitten me in Handlebars multiple times is referencing a property that doesn't exist, such as:

<p>{{foo.bar}}</p>

If foo.bar doesn't exist, then I get no indication in the output that it's missing. I understand that as a default behavior, but I'd prefer to throw an error in that case.

I know I can implement this myself by inheriting from JavaScriptCompiler, I was just curious if this would be considered as an available option built-in to Handlebars?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions