Module: Awestruct::Sassable
Instance Method Summary collapse
Instance Method Details
#output_extension ⇒ Object
28 29 30 |
# File 'lib/awestruct/sassable.rb', line 28 def output_extension 'css' end |
#render(context) ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/awestruct/sassable.rb', line 15 def render(context) sass_opts = Compass. sass_opts[:load_paths] ||= [] Compass::Frameworks::ALL.each do |framework| sass_opts[:load_paths] << framework.stylesheets_directory end sass_opts[:load_paths] << File.dirname( self.source_path ) sass_opts[:syntax] = syntax() sass_opts[:custom] = site sass_engine = Sass::Engine.new( raw_page_content, sass_opts ) sass_engine.render end |