Sha256: 90137e11818004427950c4af0d59e2cc0623400e99ec298116e34ae2fb9d9ef4
Contents?: true
Size: 940 Bytes
Versions: 2
Compression:
Stored size: 940 Bytes
Contents
# LiveScript-Rails LiveScript adapter for the Rails asset pipeline. Depends on [Roonin-mx/livescript-ruby](https://github.com/Roonin-mx/livescript-ruby) to compile LiveScript to javascript. ## Installation Add the following lines to your `Gemfile`: ``` gem 'livescript-rails' ``` If you are precompiling your assets (with rake assets:precompile) before run your application in production, you might want add it to the assets group to prevent the gem being required in the production environment. ``` group :assets do gem 'livescript-rails' end ``` ## Configuration You can set compile options in `config/initializers/assets.rb`: ``` # These are default options. User set options will override default options Rails.application.config.assets.livescript = { bare: true, header: false, map: 'linked-src', } ``` See [Roonin-mx/livescript-ruby](https://github.com/Roonin-mx/livescript-ruby) for more options. ## License MIT
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
livescript-rails-2.0.1 | README.md |
livescript-rails-2.0.0 | README.md |