Sha256: 1140f7347ec428c04552f5a4f3bfc8196c7917cf2b20eef560081f3b23b0b39a

Contents?: true

Size: 1.29 KB

Versions: 1

Compression:

Stored size: 1.29 KB

Contents

= Cascading Stylesheets

Cascading Javascripts is a plugin that enhances the behaviour of the built-in stylesheet_link_tag macro to include
controller and action specific stylesheet files.

If :cascades is passed as a parameter, the stylesheet_link_tag macro will load the following stylesheet files (if
present) in order:

1. controller_name/action_name.css (e.g. home.css, customers.css, etc.); and
2. controller_name/action_name.css (eg. home/index.css, customers/new.css, etc.).

This allows you to define application-wide and page-specific stylesheet files without needing to manually include each
one.

To use, simply call stylesheet_include_tag from application.html.erb including :cascades as a (or the only) parameter:

  <html>
    <head>
      ...
      <%= stylesheet_link_tag :cascades %>
    </head>
    ...
  </html>

== Installation

You have two choices for installation. The first uses a gem (recommended):

  $ sudo gem install harukizaemon-cascading_stylesheets

Or you can use the Rails plugin

  $ ruby script/plugin install git://github.com/harukizaemon/cascading_stylesheets.git

=== See Also

* <b>Cascading Javascripts:</b> http://github.com/harukizaemon/cascading_stylesheets

=== License

This plugin is copyright 2006 by RedHill Consulting, Pty. Ltd. and is released under the MIT license.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
harukizaemon-cascading_stylesheets-2.0.0 README.rdoc