The unpoly-rails
gem makes the Unpoly's JavaScript and CSS sources
available to the Rails asset pipeline. It also includes
some useful helpers
for your controllers and views.
To install Unpoly in Rails, add the following line to your Gemfile
:
gem 'unpoly-rails'
Now run bundle install
and restart your development server.
Add the following line to your application.js
manifest:
//= require unpoly
Also add the following line to your application.css
manifest:
/*
*= require unpoly
*/
If you want to use Unpoly's Bootstrap integration, add the following to your application.js
manifest after requiring Bootstrap:
//= require unpoly
//= require unpoly-bootstrap3
Also add the following to your application.css
manifest after requiring Bootstrap:
/*
*= require unpoly
*= require unpoly-bootstrap3
*/
If your Roda app uses an asset bundler like Webpack, you can get Unpoly from npm. You can also load Unpoly from a CDN or download a local copy.
If you need the optional server protocol in your Roda app, check out the roda-unpoly gem.
If your Rack app uses an asset bundler like Webpack, you can get Unpoly from npm. You can also load Unpoly from a CDN or download a local copy.
If you need the optional server protocol in your Rack app, check out the rack-unpoly gem.
Say thanks with a star on GitHub!