module Webgen::ContentProcessor::Scss
Processes content in sassy CSS markup (used for writing CSS files) using the sass
library.
Public Class Methods
call(context)
click to toggle source
Convert the content in scss
markup to CSS.
# File lib/webgen/content_processor/scss.rb 11 def self.call(context) 12 options = Webgen::ContentProcessor::Sass.default_options(context).merge(:syntax => :scss) 13 context.content = ::Sass::Engine.new(context.content, options).render 14 context 15 rescue ::Sass::SyntaxError => e 16 raise Webgen::RenderError.new(e, 'content_processor.scss', context.dest_node, nil, (e.sass_line if e.sass_line)) 17 end