Hi Steve, Your mixins look fine. What version of haml do you have installed? You need to be running off the master branch of haml to use mixin arguments.
Regarding your second question, SassScript is certainly capable of expressing manipulation of arguments. Take a look at compass's grid module for an example. That said, be careful not to trade too much clarity for DRYness. That's a judgement call, of course. -chris Hunt & pecked on my iPhone... Sorry if it's brief! On Nov 28, 2008, at 3:45 PM, "s.ross" <[EMAIL PROTECTED]> wrote: > > After looking over Compass a bit, it looked like a good time to > revisit some of my monolithic CSS. I wanted to create a mixin for > background positioning: > > =sprite(!x=0px, !y=0px) > :background url(/some/place/my/png/lives.png) no-repeat > :background-position !x !y > > And then: > > .accept-button > +sprite(-320px, -440px) > > Without the arguments everything is dandy, but when I add the > arguments, the sprite mixin is not found. Bonus question: As all my > offsets are negative and specified in pixels, it would be great to > just write: > > +sprite(320, 440) > > Is that level of interpolation possible? > > Any help appreciated! > > Steve > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
