Problem using MAP in Sass

3

As released on the Sass blog from version 3.3 is available the creation of map in Sass (basically an object). I have the following version of Sass (properly updated by GEM):

$ sass -v
Sass 3.3.5 (Maptastic Maple)

And with the following version of Compass:

$ compass -v
Compass 0.12.5 (Alnilam)

So long, beauty. So I went to create a map that is in a file called: _palette-colors.sass and has the following content:

$objeto: (key1: valor1, key2: valor2)
And when I compile I get the following message:

  

error sass / output / style.sass (Line 4 of sass / lib / map / _palette-color.sass: Invalid CSS after "(key1": expected ")", was ": value1, key2: ... ")

I wonder if I'm doing something wrong or forgetting to create or modify anything before compiling. I have researched the web and as it is something new in Sass I did not find many references about problems or applications.

PS: I've tried turning the keys and / or values into string's and did not scroll either.

    
asked by anonymous 16.04.2014 / 12:59

1 answer

1

Talking to a friend on Skype, he gave me the solution because I had been through the same problem a little while ago.

Just run the command below at your ruby prompt (on windows) or the terminal on linux.

gem install compass --pre

The above command will install a beta version of the compass that already supports the sass maps.

    
17.04.2014 / 17:29