Method: Webgen::ContentProcessor::Sass.call

Defined in:
lib/webgen/content_processor/sass.rb

.call(context) ⇒ Object

Convert the content in sass markup to CSS.



132
133
134
135
136
137
# File 'lib/webgen/content_processor/sass.rb', line 132

def self.call(context)
  context.content = ::Sass::Engine.new(context.content, default_options(context)).render
  context
rescue ::Sass::SyntaxError => e
  raise Webgen::RenderError.new(e, 'content_processor.sass', context.dest_node, nil, (e.sass_line if e.sass_line))
end