Skip to content
This repository has been archived by the owner on Nov 17, 2018. It is now read-only.

Commit

Permalink
Add some usage instructions to the readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
seven1m committed Jun 3, 2009
1 parent ab48fdf commit ca2d0fd
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,30 @@ Installation
------------

sudo gem install seven1m-cascading_rubies -s http://gems.github.com

Usage
-----

The gem includes a binary called `rcss`. Run it without args for usage details.
Here are some examples:

rcss base.rcss nav.rcss # print both rendered css files to screen
rcss -w base.rcss nav.rcss # write rendered base.css and nav.css
rcss base.rcss nav.rcss > all.css # write to single file
rcss -w stylesheets # render all .rcss files in directory

To use the library from within your own code:

require 'rubygems'
require 'cascading_rubies'

css = CascadingRubies.parse(path_to_file)
# or...
css = CascadingRubies.new do
# css here
end

rendered = css.to_s

Shortcomings
------------
Expand Down

0 comments on commit ca2d0fd

Please sign in to comment.