Permalink
Browse files

add usage description for a standalone javascript file

  • Loading branch information...
1 parent 1082860 commit de5ad333ad7924914c2283375aea922fa2fb5964 @tsechingho committed Feb 29, 2012
Showing with 9 additions and 1 deletion.
  1. +9 −1 README.md
View
@@ -20,10 +20,18 @@ Or install it yourself as:
## Usage
-Add to your `app/assets/stylesheets/application.js`
+Add this line to your `app/assets/stylesheets/application.js` to compile as a part of application.js
//= require modernizr
+Or add this line to your `config/environments/production.rb` to compile as a standalone javascript file
+
+ config.assets.precompile += %w( modernizr.js )
+
+And include it in your layout like `app/views/layouts/application.html.erb`
+
+ <%= javascript_include_tag 'modernizr' %>
+
## Contributing
1. Fork it

0 comments on commit de5ad33

Please sign in to comment.