-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Strict mode has seemingly no effect on partials #1708
Comments
Can anyone confirm whether this is as intended or whether you are open to changing this behaviour? |
@JemarJones I'm seeing the same behavior, and it has been throwing me off in my unit tests. I had assumed partials were beholden to Thanks for the narrow example highlighting the issue. |
@JemarJones one more followup - I opened this issue a while ago: #1681 which talks about wanting to get more detail when a partial throws an error in strict mode. What I don't remember now is why/how I was able to get those errors identified in that issue to display, because now I don't seem to see them from partials. |
Oh interesting, it would be awesome if there is some workaround possible |
Before filing issues, please check the following points first:
(I put together an example on runkit before i realized you had a base fiddle, hopefully thats alright.
This will probably help you to get a solution faster.
For bugs, it would be great to have a PR with a failing test-case.
The issue:
When using strict mode and passing a parameter into a partial, no error is thrown when that value is missing.
Example
See this running example here: https://runkit.com/jemarjones/handlebars-strict-mode-partials
The text was updated successfully, but these errors were encountered: