Code Monkey home page Code Monkey logo

fresh-backbone's Introduction

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-backbone' in your Gemfile
  2. //= require underscore, backbone and jquery from your application.js
  3. Have your backbone as you like

Use it with sinatra

  1. gem 'fresh-backbone' in your Gemfile, yep
  2. 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-backbone" # 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 backbone files!

fresh-backbone's People

Contributors

kaineer avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.