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

CoffeScript interpolation does not work #65

Closed
kbackowski opened this issue Aug 20, 2012 · 1 comment
Closed

CoffeScript interpolation does not work #65

kbackowski opened this issue Aug 20, 2012 · 1 comment

Comments

@kbackowski
Copy link

Similar to haml syntax following code:

%span.add-on.stats-vote-impact
  #{2 + 2}%

Should be parsed as

%span.add-on.stats-vote-impact
  = "#{2 + 2}%"

But it throws exception :

ExecJS::ProgramError in Video_channel/polls#show

Showing /var/proj/rp-dev1/app/views/layouts/video_channel.html.haml where line #10 raised:

Unable to parse tag from #{2 + 2}%: TypeError: Cannot call method 'replace' of undefined
(in /var/proj/rp-dev1/app/assets/javascripts/templates/polls/statistics.jst.hamlc)

@netzpirat
Copy link
Collaborator

Thanks a lot for reporting. That was an easy fix of a RegExp that didn't take this into account. Haml Coffee 1.4.2 and Haml Coffee Assets 1.4.3 have been released with the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants