Skip to content

Instantly share code, notes, and snippets.

@pengwynn
Created February 14, 2012 23:21
Show Gist options
  • Save pengwynn/1831561 to your computer and use it in GitHub Desktop.
Save pengwynn/1831561 to your computer and use it in GitHub Desktop.
Nesta, compass, rack
# Compass Configuration
# require 'zocial-toolkit'
# HTTP paths
http_path = '/'
http_stylesheets_path = '/wynn/css'
http_images_path = '/wynn/images'
http_javascripts_path = '/wynn/javascripts'
# File system locations
sass_dir = 'themes/wynn/sass'
css_dir = 'themes/wynn/public/wynn/css'
images_dir = 'themes/wynn/public/wynn/images'
javascripts_dir = 'themes/wynn/public/wynn/javascripts'
# Fonts
http_fonts_path = '/wynn/fonts'
http_fonts_dir = 'themes/wynn/public/wynn/fonts'
# Set to true for easier debugging
line_comments = false
preferred_syntax = :sass
# CSS output style - :nested, :expanded, :compact, or :compressed
output_style = :expanded
# Determine whether Compass asset helper functions generate relative
# or absolute paths
relative_assets = true
# Learn more: http://compass-style.org/docs/tutorials/configuration-reference/
require 'rubygems'
require 'bundler/setup'
Bundler.require(:default)
# The project root directory
root = ::File.dirname(__FILE__)
# Compile Sass on the fly with the Sass plugin. Some production environments
# don't allow you to write to the file system on the fly (like Heroku).
# Remove this conditional if you want to compile Sass in production.
if ENV['RACK_ENV'] != 'production'
require 'sass'
require 'sass/plugin/rack'
require 'compass'
Compass.add_project_configuration(root + '/config.rb')
Compass.configure_sass_plugin!
use Sass::Plugin::Rack # Sass Middleware
end
#... other stuff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment