Mixin arguments were added in 2.2 which was released this morning. Please upgrade. Chris
On Mon, Jul 6, 2009 at 7:30 AM, The Wicked Flea <[email protected]>wrote: > > Hello, > > I'm using Sass to make a custom css framework. To generate my grid > system I've started using a mixin to which I pass the size of the > container. But, whenever I use the mixin, it says 'syntax error: on > line 35: Undefined constant "!size".' This constant is defined in the > mixin as stated in the documentation; I also pass parameters and get > the same error. I am using the latest Haml/Sass, `haml -v` says > 2.0.10, on Windows Vista (UAC is disabled). > > The code that's failing is the following: > > > // 10px spacing between 9 columns, 10px padding in wrapper > > !spacing= 110px > > =grid_system(!size) > > !grid_size= (!size - !spacing) / 10 > > .grid-1 > > :width= !grid_size > > .grid-2 > > :width= !grid_size * 2 + 10px > > .grid-3 > > :width= !grid_size * 3 + 20px > > .grid-4 > > :width= !grid_size * 4 + 30px > > .grid-5 > > :width= !grid_size * 5 + 40px > > .grid-6 > > :width= !grid_size * 6 + 50px > > .grid-7 > > :width= !grid_size * 7 + 60px > > .grid-8 > > :width= !grid_size * 8 + 70px > > .grid-9 > > :width= !grid_size * 9 + 80px > > .grid-10 > > :width= !grid_size * 10 + 90px > > I'm guessing that Sass doesn't like the nested variable I've got in > there, but I figured it might get through. In spite of that, I've > tried other mixins with arguments and they all fail with this same > error: undefined constant. > > What am I missing here? > > Thanks, > Flea > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Haml" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/haml?hl=en -~----------~----~----~----~------~----~------~--~---
