0.0
No commit activity in last 3 years
No release in over 3 years
Provides zepto.js for the rails asset pipeline
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 3.1.0
 Project Readme

zepto-rails

Zepto for the Rails asset pipeline.

This gem provides Zepto 1.0.

Installation

Add zepto-rails to the Gemfile.

gem 'zepto_rails'

And run bundle install.

Then add this lines to your app/assets/javascripts/application.js:

// require zepto

If you only want to include some of the modules in zepto you can add them individually. The available modules are:

//= require zepto/polyfill
//= require zepto/zepto
//= require zepto/event
//= require zepto/detect
//= require zepto/fx
//= require zepto/fx_methods
//= require zepto/ajax
//= require zepto/form
//= require zepto/assets
//= require zepto/data
//= require zepto/selector
//= require zepto/touch
//= require zepto/gesture
//= require zepto/stack

Or if you want to include all of the modules add this line to your app/assets/javascripts/application.js:

// require zepto/all