handlebars.js icon indicating copy to clipboard operation
handlebars.js copied to clipboard

Bizarre context resolution when parent context is block params

Open dontgitit opened this issue 6 years ago • 0 comments

Sample fiddle: https://jsfiddle.net/wcoshgaL/4/

I have a helper that sets value=omg in context and value=1 in block params. The template correctly renders the value from the block params. Inside that, I call a second helper that sets value=bar in normal context. I would expect value to be bar here since that is in the current context. However, it seems to pull the value out of the parent block param context instead....

dontgitit avatar Dec 07 '18 00:12 dontgitit