Skip to content

Commit

Permalink
add usage description for a standalone javascript file
Browse files Browse the repository at this point in the history
  • Loading branch information
tsechingho committed Feb 29, 2012
1 parent 1082860 commit de5ad33
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit de5ad33

Please sign in to comment.