nesting filters (the css and sass filter)

254 views
Skip to first unread message

Eumir

unread,
May 27, 2010, 3:12:58 AM5/27/10
to Haml
Hi, to make a long story short, i need to nest the sass filter inside
the css filter so the generated css will be enclosed in style tags. I
tried this:

:css
:sass
p
:border 1px solid #f00

but in between the style tags, the sass is literally printed(wasn't
parsed)

doing

:css
p {border: 1px solid #f00}

did the trick, but i wish to still use sass in coding the inline style
so is this a bug or is nesting filters just not possible?

Chris Eppstein

unread,
May 27, 2010, 3:15:55 AM5/27/10
to ha...@googlegroups.com
You can't nest filters.

you want this for sass:

%style(type="text/css")
  :sass
    div
      color: red

Yes, they're inconsistent.

chris


--
You received this message because you are subscribed to the Google Groups "Haml" group.
To post to this group, send email to ha...@googlegroups.com.
To unsubscribe from this group, send email to haml+uns...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/haml?hl=en.


Eumir

unread,
May 27, 2010, 6:17:19 AM5/27/10
to Haml
Oh crud...oh well, it would have been prettier if they could be
nested :P thanks for the quick reply!

> > haml+uns...@googlegroups.com <haml%2Bunsu...@googlegroups.com>.

Reply all
Reply to author
Forward
0 new messages