A wrapper around Turbolinks library that enables you to hook up into Turbolinks lifecycle events and connect your modules to specific updates in the DOM. Especially usefull if you're using Turbolinks's partial replacement feature.
It's important to include this script after Turbolinks.
<script type="text/javascript" src="dist/turbolinks-modules.js"></script>
Bower:
bower install -S turbolinks-modules
Gem (via rails-assets)
source 'https://rails-assets.org' do
gem 'rails-assets-turbolinks-modules'
end
Coming soon...
If you like this library but you think it can be improved, feel free to open an issue or submit a pull request. I'm open to adding new features.