Yeah, you pretty much have to write a helper.
Or copy a helper that someone else has already made:
https://github.com/sporkd/compass-html5-boilerplate/blob/master/lib/app/helpers/html5_boilerplate_helper.rb#L4
FWIW: I highly recommend starting all projects bootstrapped with the
compass-html5-boilerplate gem.
:brad
On Mon, Mar 21, 2011 at 5:10 AM, Pietro Giorgianni giorg...@gmail.comwrote:
Hi,
I'm trying to use the solution described here:
paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/
with the addition of a ruby-determined class.
This is what I'm trying to get:
!--[if lt IE 7 ] body class=ie6 #{some ruby expression} ![endif]--
!--[if IE 7 ]body class=ie7 #{some ruby expression} ![endif]--
!--[if IE 8 ]body class=ie8 #{some ruby expression} ![endif]--
!--[if IE 9 ]body class=ie9 #{some ruby expression} ![endif]--
!--[if gt IE 9] body class=#{some ruby expression} ![endif]--
!--[if !IE]!-- body class=#{some ruby expression} !--![endif]--
my html
/body
Is there a way to get haml to do this, or am I forced to write an
helper method that emits the open body tags as a string?
P.S. I'm using Ruby on Rails, but I don't think it matters.
thanks
pietro
--
You received this message because you are subscribed to the Google Groups
Haml group.
To post to this group, send email to haml@googlegroups.com.
To unsubscribe from this group, send email to
haml+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/haml?hl=en.
--
Bradley Grzesiak
co-founder, bendyworks llc
http://bendyworks.com/
--
You received this message because you are subscribed to the Google Groups
Haml group.
To post to this group, send email to haml@googlegroups.com.
To unsubscribe from this group, send email to haml+unsubscr...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/haml?hl=en.