Skip to content

Instantly share code, notes, and snippets.

@chriseppstein
Forked from capotej/test.rb
Created April 15, 2011 19:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chriseppstein/922357 to your computer and use it in GitHub Desktop.
Save chriseppstein/922357 to your computer and use it in GitHub Desktop.
require 'sass'
require 'compass'
require 'fileutils'
str = '@import "blueprint/reset";'
Compass.add_project_configuration("path/to/config")
result = Sass::Engine.new(str, Compass.configuration.to_sass_engine_options.update(:syntax => :scss)).render
puts result
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment