No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
vendor/assets/javascripts
README.md
fresh-jquery.gemspec

README.md

Fresh-jquery

Just got some ideas from zurb-foundation gem and fetched javascript files from http://cdnjs.com and made jquery available in any rails project, or even just project with sprockets support.

How to

Use it with rails

  1. gem 'fresh-jquery' in your Gemfile
  2. //= require jquery or //= require jquery.min in your application.js
  3. Have your jquery as you like

Use it with sinatra

  1. Gemfile in your sinatra project:
source "https://rubygems.org"

gem "sinatra"
gem "sinatra-asset-pipeline"

gem "sprockets"    # This line should go before asset gems!
gem "fresh-jquery" # The gem you're trying to use
  1. In your sinatra application:
Bundler.require

require "sinatra/asset_pipeline"
require "erb"

register Sinatra::AssetPipeline

get "/" do
    erb :index
end
  1. Run application and have /assets/jquery.js!