In HAML on Ruby on Rails, how to use the :sass filter?

Posted by Jian Lin on Stack Overflow See other posts from Stack Overflow or by Jian Lin
Published on 2010-06-12T08:33:54Z Indexed on 2010/06/12 8:43 UTC
Read the original article Hit count: 237

Filed under:
|
|

If using HAML on Ruby on Rails, then

:sass
  #someDiv
    border: 3px dashed orange

won't have any <style> tag around them.

and then

:css
  :sass
    #someDiv
      border: 3px dashed orange

won't kick on the :sass filter, but

:css
:sass
  #someDiv
    border: 3px dashed orange

will kick on the :sass filter, but it is outside of the <style> tag. So how can the :sass filter be used?

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about haml