Closed alexandru-calinoiu closed 12 years ago
The attribute syntax is a bit different from Ruby HAML. Please see the haml-js.
What you need to do is:
%img{src: cart_image_url}
Also keep in mind that you can't access any Ruby stuff there (including URL helpers) since it is a JavaScript runtime.
Thanks,
Hi,
I am trying to have something like:
I get an "Unexpected token >" error. Any ideas how I can achive this?
Thanks,