Reputation: 11811
Is there a filter like the existing :sass-filter for :scss in haml?
Looked out in goolge but didn't found something usefull..
And is there a reason why there is no scss-filer existing (as far as I know)?
Upvotes: 2
Views: 404
Reputation: 11811
See https://gist.github.com/1646573
# haml_scss_initializer.rb
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
Upvotes: 2
Reputation: 11811
There is no filter and I posted an issue on the github page:
https://github.com/nex3/haml/issues/474
Upvotes: 0