librelist archives

« back to archive

Configuring Sass

Configuring Sass

From:
Tommy Sundström
Date:
2013-05-11 @ 14:15
This is a way I found to configure Sass output. 

In the themes app.rb


module Nesta
  class App
  
    # ...

    configure do
      require 'susy'      
      
      # Configuring sass
      sass_options = Hash.new

      #     Making the generated css easier to read and debug
      sass_options[:line_numbers] = true  
      
      # Other interesting options:
      # :debug_info => true   # If using FireBug
      # :style => :nested     # Can sometimes make the generated css 
easier to read
      # Options documentation:
      # http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#options
      
      # … other configurations

      set :sass, sass_options
      set :scss, sass_options
    end
    
    # … other stuff

  end
end