9elements/haml-coffee — Issue #24: unquoted attribute value evaluated as coffeescript and not as ruby
Author: gucki
Created: 2012-03-02 10:50:39+00:00
State: open

Accoding to the REAMDE

When you define an attribute value without putting it into quotes (single or double quotes), it's considered to be CoffeeScript code to be run at render time. By default, attributes values from CoffeeScript code are escaped before inserting into the document. You can change this behaviour by setting the appropriate compiler option.

Consider this simple snippet:

%img(src="#{im_not_defined}")

I'd expect a ruby compilation error but instead I get a javascript error.