class Haml::Filters::SassRailsTemplate
Rails’s asset helpers to be used inside Haml Sass filter.
This is an extension of Sass::Rails’s SassTemplate class that allows
def render(scope=Object.new, locals={}, &block)
def render(scope=Object.new, locals={}, &block) scope = ::Rails.application.assets.context_class.new(::Rails.application.assets, "/", "/") super end
def sass_options(scope)
def sass_options(scope) options = super options[:custom][:resolver] = ::ActionView::Base.new options end