lightncandy icon indicating copy to clipboard operation
lightncandy copied to clipboard

Line breaks in hash options fail to compile

Open laurenhamel opened this issue 5 years ago • 2 comments

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.

laurenhamel avatar May 23 '19 17:05 laurenhamel

Thank you for reporting this! Will check this template on both lightncandy and handlebars.js.

zordius avatar Jun 07 '19 02:06 zordius

confirmed as a bug, minimal template is:

{{#foo data=(foo a='b'
)}}bar{{/foo}}

zordius avatar Jun 09 '19 07:06 zordius