github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

automatthew / cassandra

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 8
    • 1
  • Source
  • Commits
  • Network (1)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (2)
    • master ✓
    • palette
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Generate CSS using Ruby with Markaby/Builder style syntax — Read more

  cancel

http://cassandra.rubyforge.org

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

bump gemspec version to 0.2.4 
Matthew King (author)
Tue Sep 30 11:13:57 -0700 2008
commit  b32a1dae59a8bdfa5d4b99b7ca5f561a942bacac
tree    2eef68147104114f101faba6021ea11251231496
parent  54576bf09214288e34e1c68fe61f2e738ba18cd4
cassandra /
name age
history
message
file Manifest Loading commit data...
file README.rdoc
file Rakefile
file cassandra.gemspec
directory lib/
directory misc/
directory site/
directory test/
README.rdoc

Cassandra, a.k.a Cssy

Cassandra is a CSS companion to Markaby. You declare selectors using methods named after the type selectors (i.e. tags) or after the class and id selectors of your choice, which are handled by method_missing. As in Markaby, id selectors are distinguished from class selectors by the "!" at the end of the method name. You can chain class/id selectors onto type selectors and each other.

Because in CSS you don’t have to begin with a type selector, starting a selector chain with a class/id selector is currently allowed in Cassandra. This may go away in the future.

Usage

  @css = Cssy.new
  @css.process do

    body { background_color "#F8F7F1"}
    div.content! {
      width "700px"; margin "25px auto"

      a {
        color "#212F54";
        text_decoration :none
        font_weight :bold
      }

      ul.links! { list_style "url(flower.png)"  }
    }

  end

  @css.data    #=> array of arrays
  @css.to_s
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server