Problem/Motivation

Compass comes with a great spriting library, sassy should come with a PHP port of it.

Proposed resolution

Not really sure of this, there are a lot of PHP scripts for creating CSS sprites kicking around, and there are a few Drupal modules: Sprite, CSS Sprite Generator and Spritesheets.

Remaining tasks

  • Come up with a good archtecture for a solution.
  • Write tests for the sprites.
  • Implement the solution.

User interface changes

None.

API changes

Sprites will work!

Comments

steven jones’s picture

So I had a play with this, and turns out that it's really hard to implement because this uses the named function parameters feature in ruby, a lot!

Not sure if sassy can have some similar mechanism for passing named parameters to a PHP function, when you don't know the name of the parameters at 'compile time'.

richthegeek’s picture

Depending on what you need, PHP relfection/introspection can do some of this: http://uk.php.net/manual/en/book.reflection.php

We are already using this for custom functions in PHP, to make sure they have the right number of parameters.

Can you post some examples of how the ruby version works?

richthegeek’s picture

Status: Active » Postponed

Postponing this until I have time (ha).