Postponed
Project:
Sassy
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
5 Jun 2012 at 06:10 UTC
Updated:
3 Sep 2012 at 16:53 UTC
Compass comes with a great spriting library, sassy should come with a PHP port of it.
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.
None.
Sprites will work!
Comments
Comment #1
steven jones commentedSo 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'.
Comment #2
richthegeek commentedDepending 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?
Comment #3
richthegeek commentedPostponing this until I have time (ha).