HAML & SASS/COMPASS: Is it possible to share variables between? -


i'm getting used working compass , haml , it's pretty awesome. however, great if 2 work more closely together. seems not possible, might have overlooked or didn't search properly.

i guess mean this:

general variable file:

$container-id = "container" $primary-column-id = "navbar" 

haml file:

!!! 5   %html(lang="en")     %head       %title     %body       #{$container-id}         %section#{$primary-column-id} 

compass file:

#{$container-id} {   width: 900px; }  #{$primary-column-id} {   width: 400px; } 

from research , usage, not supported (without sort of custom outside solution). agree awesome feature in theory, assume doesn't exist because of separation of concerns.

for example, specific haml files have aware of linkage other specific sass files when compiled, , pick declared variables. happen sass <- -> sass, via partials. however, idea above -> markup (haml) blending styling (sass/scss). though reference 1 - have different purposes. e.g. id in dom attribute of object, whereas in stylesheet id selector of object.

a framework (such compass) theoretically achieve because looks @ projects - might more appropriate have unified project wide config file (neither sass nor haml) variable declarations or something.

this'd great question chris eppstein's opinion on: https://stackoverflow.com/users/41221/chriseppstein


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -