Skip to content

Instantly share code, notes, and snippets.

@mbleigh
Created March 21, 2012 03:14
Show Gist options
  • Save mbleigh/2143990 to your computer and use it in GitHub Desktop.
Save mbleigh/2143990 to your computer and use it in GitHub Desktop.

Revisions

  1. Michael Bleigh renamed this gist Mar 23, 2012. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. Michael Bleigh revised this gist Mar 23, 2012. 3 changed files with 11 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion Gemfile
    Original file line number Diff line number Diff line change
    @@ -4,4 +4,6 @@ gem 'sprockets'
    gem 'sprockets-sass'
    gem 'sass'
    gem 'compass'
    gem 'bootstrap-sass'
    gem 'bootstrap-sass'
    gem 'handlebars_assets'
    gem 'coffee-script'
    1 change: 1 addition & 0 deletions application.js.coffee
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    #= require bootstrap
    7 changes: 7 additions & 0 deletions config.ru
    Original file line number Diff line number Diff line change
    @@ -5,11 +5,18 @@ require 'sprockets'
    require 'compass'
    require 'sprockets-sass'
    require 'bootstrap-sass'
    require 'handlebars_assets'
    require 'coffee-script'

    map '/assets' do
    environment = Sprockets::Environment.new
    environment.append_path 'assets/javascripts'
    environment.append_path 'assets/stylesheets'
    environment.append_path 'assets/templates' # for Handlebars templates

    environment.append_path HandlebarsAssets.path
    # Adds Twitter Bootstrap Javascripts
    environment.append_path Compass::Frameworks['bootstrap'].templates_directory + '/../vendor/assets/javascripts'
    run environment
    end

  3. Michael Bleigh revised this gist Mar 21, 2012. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions application.sass
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    @import "compass"
    @import "bootstrap"
  4. Michael Bleigh created this gist Mar 21, 2012.
    7 changes: 7 additions & 0 deletions Gemfile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    source "https://rubygems.org"

    gem 'sprockets'
    gem 'sprockets-sass'
    gem 'sass'
    gem 'compass'
    gem 'bootstrap-sass'
    16 changes: 16 additions & 0 deletions config.ru
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    require 'bundler'
    Bundler.setup :default, (ENV['RACK_ENV'] || 'development')

    require 'sprockets'
    require 'compass'
    require 'sprockets-sass'
    require 'bootstrap-sass'

    map '/assets' do
    environment = Sprockets::Environment.new
    environment.append_path 'assets/javascripts'
    environment.append_path 'assets/stylesheets'
    run environment
    end

    run lambda{|env| [200, {}, ['Put your app here.']]}