Easy documentation for your sprites.
PHP
Latest commit 0cffbd9 Oct 23, 2011 Kimber Lockhart Initial SpriteDocs Stable Version 1.0
Displays a sprite documentation page displaying sprite images files and their current uses.  Configurable.  Works if sprite rules are defined with the image, position, width and height in the same rule, or if following the size-based sprite approach suggested here: http://kimberlockhart.com/size-based-sprites/.

Contains main SpriteDocs file and template.

Known Issues:
- If addressed at least once by relative path and once by absolute path, an image is displayed twice.
- Does not support size-based sprite configurations with more than one base rule or image for each size.
- Does not support properties redefined within the rule.
- JS is DOM dependent.  Changing the rendering will break the JS for creating a new sprite.

README

SpriteDocs
Requires CSSTidy 1.3 - http://sourceforge.net/projects/csstidy/

Copyright 2011 Box.net

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

@license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
@author Kimber Lockhart (kimber at kimberlockhart dot com) 2011 -->