Skip to content

Conversation

gogaz
Copy link

@gogaz gogaz commented Apr 14, 2023

Handlebars.js allows end-user to provide the option strict: true to their API (documented here)

In this mode, templates will throw rather than silently ignore missing fields. This has the side effect of disabling inverse operations such as {{^foo}}{{/foo}} unless fields are explicitly included in the source object.

This pull request adds support for the strict mode and has the same API as the original Handlebars library.

@gogaz gogaz changed the title Add support for strict mode feature [FEATURE] Add support for strict mode feature Apr 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant