0.0
No commit activity in last 3 years
No release in over 3 years
Module to integrate Sprint.js to Rails Asset Pipeline.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.7
~> 10.0

Runtime

>= 3.1
 Project Readme

Sprint-rails

Integrate Sprint.js, a high-performance, minimal, and simple substitute of jQuery to Asset pipeline of your Rails App.

Installation

Add this line to your application's Gemfile:

gem 'sprint-rails'

And then execute:

$ bundle install

After that, you need to make sprint.js available on your pages. To do that, you can add it to your application.js file, like this:

//= require sprint

Usage

Just as same as jQuery, you can use like following. If you'd check in detail, visit the original github repo of Sprint.js

*In original case, Sprint's syntax is like this:

$("div").addClass("new").append("<p>Hi Sprint</p>");

But if you try to integrate it with Rails or existing jQuery apps, you have to use "Sprint" instead of "$" like this:

Sprint("div").addClass("new").append("<p>Hi Sprint</p>");

Contributing

  1. Fork it ( https://github.com/[my-github-username]/sprint-rails/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request