I did this successfully with classes, but with ID's it chokes,
presumably on the syntax.
in application.sass I have
+layout(default)
+layout(three-column)
+layout(two-column)
in _layouts.sass I have
= layout(!name = false)
!layout_selector = "##{!name}"
@if !name == "default
body
#primary
+column(18)
#primary
+column(8, true)
@else
body#{layout_selector}
@if !name == "three-column"
#primary
+column(8)
#secondary
+column(8)
#tertiary
+column(8, true)
@if !name == "one-column"
#primary
+column(24, true)
Is there any way to do this?
--
You received this message because you are subscribed to the Google Groups
"Haml" group.
To post to this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/haml?hl=.