Skip to content

There should be a configuration option to throw if a tag finds no match in the source #651

@christothes

Description

@christothes

Given data with a missing property represented in the source, it should be configurable to have this throw.

var source = 'Some text {{foo}} with {{missing}} tag';
var template = Handlebars.compile(source);
var data = { foo : 'bar'};

//should optionally throw
var result = template(data); 

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