README.md in active_assets-1.0.0 vs README.md in active_assets-1.0.1
- old
+ new
@@ -1,8 +1,10 @@
Active Assets
=============
+If you are looking to use Active Assets with rails 2.3.x, click [here](https://github.com/shwoodard/active_assets/tree/0-3).
+
A Railtie that provides an asset management system for css, javascript, and sprites in your Rails applications and engines. ActiveAssets includes two libraries, ActiveExpansions and ActiveSprites. ActiveSprites generates sprites defined by a dsl similar to a route definition. Similarly, ActiveExpansions' dsl creates `ActionView::Helpers::AssetTagHelper` javascript and stylesheet expansions, and adds additional features:
* Concatenation of included assets for expansions at boot or deploy time.
* Support for environment specific assets, so that, say, you can use one file for development and another for production or one file for development and then a cdn resource for production.
@@ -44,12 +46,13 @@
require 'active_assets/active_expansions/railtie'
... OR ...
require 'active_assets/active_sprites/railtie'
...
-## The DSLs
-### Introduction to Active Sprites
+The DSLs
+========
+## Introduction to Active Sprites
ActiveSprites allows you to generate sprites within your Rails apps with `rake sprites`! All you need is `rmagick`, `chunky_png`, or `mini_magick` and you are on your way. Store the images that make up your sprites within your Rails project, use the dsl below to inform ActiveSprites of which images to include in your sprites as well as the css selector corresponding to each image, the location to write the sprite, and the location to write the stylesheet.
A basic example ...
@@ -95,13 +98,13 @@
...
config.active_sprites.sprite_backend = :chunky_png
...
-### Introduction to Active Expansions
+## Introduction to Active Expansions
-ActiveExpansions allow you to register Rails javascript and stylesheet expansions via a simple dsl. Addionally, the assets in the expansion are concatenated when appropriate and the expansion delivers the concatenated (or 'cached') assets' path in the appropriate environments. Also, files can be specified as deploy only or only for a specific environment. For example, you may wish to include jQuery or Prototype src files in development and use minified libraries from cdn sources in production. This is supported.
+ActiveExpansions allow you to register Rails javascript and stylesheet expansions via a simple dsl. Additionally, the assets in the expansion are concatenated when appropriate and the expansion delivers the concatenated (or 'cached') assets' path in the appropriate environments. Also, files can be specified as deploy only or only for a specific environment. For example, you may wish to include jQuery or Prototype src files in development and use minified libraries from cdn sources in production. This is supported.
* Below demonstration shows several variations on how to declare expansions. Note that these declaration are redundant to demonstrate how to accomplish the same thing in different ways.
* Alternatively you can also register your assets in multiple files. Simply omit `config/asets.rb` and add as many .rb files as you like inside a directory `config/assets`
* Note the `register` is optional `Rails.application.expansions do` will work the same way
@@ -200,5 +203,9 @@
##### config/environments/production.rb
...
config.active_expansions.precache_assets = true
...
+
+Contributing
+============
+Fork and stuff...you know the drill!