Skip to content
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

Line breaks in hash options fail to compile #310

Open
laurenhamel opened this issue May 23, 2019 · 2 comments
Open

Line breaks in hash options fail to compile #310

laurenhamel opened this issue May 23, 2019 · 2 comments
Assignees
Labels
Milestone

Comments

@laurenhamel
Copy link

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.

@zordius
Copy link
Owner

zordius commented Jun 7, 2019

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

@zordius
Copy link
Owner

zordius commented Jun 9, 2019

confirmed as a bug, minimal template is:

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

@zordius zordius self-assigned this Jun 9, 2019
@zordius zordius added the bug label Jun 9, 2019
@zordius zordius added this to the 1.2.5 milestone Jun 9, 2019
@zordius zordius modified the milestones: 1.2.5, 1.2.6 Mar 8, 2020
@zordius zordius modified the milestones: 1.2.6, 1.2.7 Jul 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants