CSSPrimer takes in a markup file and generates a css file of all the extracted ids and classes.
Terminal usage
As a ruby gem:
css_primer -h
Or you can just:
ruby bin/css_primer -h
Using Examples
ruby bin/css_primer --in examples/test.html
ruby bin/css_primer --in examples/test.xml --out some_styles.css
Dependencies
Core Lib
- ostruct
- optparse
- fileutils
Tests
You need rspec http://rspec.info/
spec tests/css_primer.rspec
Bugs
- classes/ids on the same line are randomly sorted in when writing rules in order
Author
Copyright 2010 Brent Lintner
The MIT License
http://www.opensource.org/licenses/mit-license.php