lightncandy
lightncandy copied to clipboard
Line breaks in hash options fail to compile
The Handlebars Code:
{{#custom-block 'some-text' data=(custom-helper
opt_a='foo'
opt_b='bar'
)}}
...
{{/custom-block}}
The Issue:
While cleaning up some code to make things easier to read, I ran into a compilation error after inserting line breaks between hash options. The code I'm using was directly dumped from a handlebar.js environment, where I did not encounter any issues with the same syntax.
Thank you for reporting this! Will check this template on both lightncandy and handlebars.js.
confirmed as a bug, minimal template is:
{{#foo data=(foo a='b'
)}}bar{{/foo}}