Skip to content
Browse files

adding the choice between bootstrap less or sass

  • Loading branch information...
1 parent cac1129 commit 8bdb8d2be7bc5f5ebb0115f419e7b70a5784d001 @gmgp gmgp committed Mar 4, 2012
Showing with 11 additions and 5 deletions.
  1. +11 −5 recipes/html5.rb
View
16 recipes/html5.rb
@@ -5,7 +5,11 @@
when 'foundation'
# https://github.com/zurb/foundation-rails
gem 'zurb-foundation'
- when 'bootstrap'
+ when 'bootstrap_less'
+ # https://github.com/seyhunak/twitter-bootstrap-rails
+ # http://railscasts.com/episodes/328-twitter-bootstrap-basics
+ gem 'twitter-bootstrap-rails', '~> 2.0.3', :group => :assets
+ when 'bootstrap_sass'
# https://github.com/thomas-mcdonald/bootstrap-sass
# http://rubysource.com/twitter-bootstrap-less-and-sass-understanding-your-options-for-rails-3-1/
gem 'bootstrap-sass', '~> 2.0.1'
@@ -22,8 +26,11 @@
say_wizard "installing Zurb Foundation HTML5 framework"
insert_into_file "app/assets/javascripts/application.js", "//= require foundation\n", :after => "jquery_ujs\n"
insert_into_file "app/assets/stylesheets/application.css.scss", " *= require foundation\n", :after => "require_self\n"
- when 'bootstrap'
- say_wizard "installing Twitter Bootstrap HTML5 framework"
+ when 'bootstrap_less'
+ say_wizard "installing Twitter Bootstrap HTML5 framework (less) "
+ generate 'bootstrap:install'
+ when 'bootstrap_sass'
+ say_wizard "installing Twitter Bootstrap HTML5 framework (sass) "
insert_into_file "app/assets/javascripts/application.js", "//= require bootstrap\n", :after => "jquery_ujs\n"
insert_into_file "app/assets/stylesheets/application.css.scss", "\n@import 'bootstrap';\n", :after => "*/\n"
when 'skeleton'
@@ -66,5 +73,4 @@
- css_option:
type: multiple_choice
prompt: "Which front-end framework would you like for HTML5 and CSS?"
- choices: [["None", nothing], ["Zurb Foundation", foundation], ["Twitter Bootstrap", bootstrap], ["Skeleton", skeleton], ["Just normalize CSS for consistent styling", normalize]]
-
+ choices: [["None", nothing], ["Zurb Foundation", foundation], ["Twitter Bootstrap (less)", bootstrap_less], ["Twitter Bootstrap (sass)", bootstrap_sass], ["Skeleton", skeleton], ["Just normalize CSS for consistent styling", normalize]]

0 comments on commit 8bdb8d2

Please sign in to comment.
Something went wrong with that request. Please try again.