Skip to content
Extract css rules from HTML/XML.
Ruby
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
bin
examples
lib
redcar
tests
.gitignore
CHANGELOG
README.rdoc
css_primer.gemspec
plugin.rb

README.rdoc

CSSPrimer

Gem Version

CSSPrimer takes in a markup file or recusively checks a folder for any. It then generates a css file with all the extracted ids and classes.

rubygems.org/gems/css_primer

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
ruby bin/css_primer --in examples/

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
Something went wrong with that request. Please try again.