You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ cat test.hbs | dist/build/BMX/bmx -c test.json
Rendering error at line 10, col 7:
Invoked value 'title' is not defined
This works with Handlebars.js (locally and tryhandlebarsjs.com both produce: <h1>Hello!</h1>\n\n<h1>Hello!</h1>), but doesn't work with BMX. 😰
Handlebars.js' behaviour, as I was explaining earlier to @russmaxdesign and @charleso, does not match my mental model of how the hell this is meant to work. Whether we choose to support this + "fix" the BMX implementation, or disallow this behaviour entirely, is up for discussion I think.
The text was updated successfully, but these errors were encountered:
The implementation of partial blocks is a total hack, I just evaluate it in the outer (calling) scope and inline the result. i.e. {{> @partial-block donut }} is intentionally broken.
I don't think this case makes sense, though? Aren't partial blocks always meant to be evaluated in the outer scope, and the argument is just for the partial itself?
test.json:
test.hbs:
This works with Handlebars.js (locally and tryhandlebarsjs.com both produce:
<h1>Hello!</h1>\n\n<h1>Hello!</h1>
), but doesn't work with BMX. 😰Handlebars.js' behaviour, as I was explaining earlier to @russmaxdesign and @charleso, does not match my mental model of how the hell this is meant to work. Whether we choose to support this + "fix" the BMX implementation, or disallow this behaviour entirely, is up for discussion I think.
The text was updated successfully, but these errors were encountered: