Skip to content

Instantly share code, notes, and snippets.

@moeffju
Created January 20, 2012 10:19
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 moeffju/1646573 to your computer and use it in GitHub Desktop.
Save moeffju/1646573 to your computer and use it in GitHub Desktop.
SCSS filter for Haml
module Haml::Filters
module Scss
include Base
lazy_require 'sass/plugin'
def render(text)
::Sass::Engine.new(text, ::Sass::Plugin.engine_options.merge(:syntax => :scss)).render
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment