Class: Howl::SassConverter

Inherits:
Converter show all
Defined in:
lib/howl/converters/sass.rb

Constant Summary

Constants inherited from Plugin

Plugin::PRIORITIES

Instance Attribute Summary

Attributes inherited from Converter

#extension

Instance Method Summary collapse

Methods inherited from Converter

converts, #initialize, matches?

Methods inherited from Plugin

<=>, inherited, priority, subclasses

Constructor Details

This class inherits a constructor from Howl::Converter

Instance Method Details

#convert(text) ⇒ Object



7
8
9
10
11
# File 'lib/howl/converters/sass.rb', line 7

def convert(text)
  sass_args = { :syntax => @template.extension.drop(1).to_sym, 
                :load_paths => [@template.path.dirname] }
  Sass::Engine.new(text, sass_args).render 
end