sass variable scope?

109 views
Skip to first unread message

Wes

unread,
Nov 27, 2009, 3:11:54 PM11/27/09
to Haml
I just tried creating a file called variables.sass that would hold,
you guessed it, all my variables which I would then @import into each
of my sass files. So, say in variables.sass I just have:

!bluetext = #264765

and then in homepage.sass I have, for example:

@import variables.sass

p.blue
color = !bluetext

But, when I try to render out the css for homepage.sass, I get an
"undefined variable" error for the line that tries to use the
variable. Can I not put variables in an 'external' file like this? Or
am I just doing something wrong? :)


Cheers,
Wes

Wes

unread,
Nov 27, 2009, 3:20:14 PM11/27/09
to Haml
Aaaaand of course it was due to just a simple error on my part.
*facepalm*

Please disregard my previous post. :D
Reply all
Reply to author
Forward
0 new messages