Skip to content

Commit

Permalink
fix compass issue (does not recognize .scss.erb as scss): change comp…
Browse files Browse the repository at this point in the history
…ass template to Sass
  • Loading branch information
glebm committed Feb 13, 2014
1 parent 19b5c85 commit 57bbed7
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
6 changes: 6 additions & 0 deletions templates/project/_variables.sass.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@import "bootstrap/variables"

<% require 'bootstrap-sass/version' %>
// Override Bootstrap variables here (defaults from bootstrap-sass v<%= Bootstrap::VERSION %>):

<%= File.read(@template[:options][:bs_variables_path]).gsub(/^(?=\$)/, '// ').gsub(/ !default;/, '') %>
6 changes: 0 additions & 6 deletions templates/project/_variables.scss.erb

This file was deleted.

4 changes: 2 additions & 2 deletions templates/project/manifest.rb
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
description 'Bootstrap for Sass'

# Stylesheet importing bootstrap
stylesheet 'styles.scss'
stylesheet 'styles.sass'

# SCSS:

assets = "../../vendor/assets"

bs_stylesheets = "#{assets}/stylesheets/bootstrap"
stylesheet '_variables.scss.erb', :to => '_variables.scss', :erb => true,
stylesheet '_variables.sass.erb', :to => '_variables.sass', :erb => true,
:bs_variables_path => File.expand_path("#{bs_stylesheets}/_variables.scss", File.dirname(__FILE__))

# JS:
Expand Down
3 changes: 3 additions & 0 deletions templates/project/styles.sass
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// customize bootstrap variables here:
@import "variables"
@import "bootstrap"
3 changes: 0 additions & 3 deletions templates/project/styles.scss

This file was deleted.

0 comments on commit 57bbed7

Please sign in to comment.