Skip to content

Instantly share code, notes, and snippets.

@timriley
Created January 27, 2009 10: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 timriley/53292 to your computer and use it in GitHub Desktop.
Save timriley/53292 to your computer and use it in GitHub Desktop.
def sass(template, options={}, &block)
require 'sass' unless defined? ::Sass
options[:layout] = false
render :sass, template, options
end
def render_sass(template, data, options, &block)
engine = ::Sass::Engine.new(data, options[:sass] || {})
engine.render
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment