class SassC::Rails::SassTemplate
def call(input)
def call(input) context = input[:environment].context_class.new(input) options = { filename: input[:filename], line_comments: line_comments?, syntax: self.class.syntax, load_paths: input[:environment].paths, importer: SassC::Rails::Importer, sprockets: { context: context, environment: input[:environment], dependencies: context.metadata[:dependency_paths] } }.merge!(config_options) { |key, left, right| safe_merge(key, left, right) } engine = ::SassC::Engine.new(input[:data], options) css = Sprockets::Utils.module_include(::SassC::Script::Functions, @functions) do engine.render end context.metadata.merge(data: css) end