pgte edited this page Sep 13, 2010 · 17 revisions

Welcome to the styled_objects homepage


  1. What is styled_objects?
  2. Why do I need styled_objects?
  3. Installing
  4. Getting started
  5. AJAX
  6. Tutorials
  7. Frequent Questions
  8. To do
  9. Benchmarks

What is styled_objects?

styled_objects is a Rails plugin for simplifying stylesheet management on your application.

Instead of having one or more large stylesheets on your public folder, have many. Keep your CSS close to their respective templates. styled_objects will compile them into one file per page.

Why do I need styled_objects?

Because It’s hard to keep order on your application. Having one or many big stylesheet files is not easy. It’s hard do build, maintain and debug.

Do object-oriented stylesheets. Each presentation object has its own style definitions. With styled_objects everything is where expected.

You also make your stylesheets independent from each other, making it easier to find problems and extend your app.

» Check out this presentation for a full pitch on OOCSS (Object-Oriented CSS).

styled_objects is easy

Just keep the stylesheet of a template or partial on the same directory, using the same name (plus a .css extension). styled_objects will compile automatically them.

» See Installing

» See Getting Started