Object
Processes content in sassy CSS markup (used for writing CSS files) using the haml library.
Convert the content in scss markup to CSS.
# File lib/webgen/contentprocessor/scss.rb, line 8 def call(context) require 'sass' context.content = ::Sass::Engine.new(context.content, :filename => context.ref_node.alcn, :syntax => :scss).render context rescue LoadError raise Webgen::LoadError.new('sass', self.class.name, context.dest_node, 'haml') rescue ::Sass::SyntaxError => e raise Webgen::RenderError.new(e, self.class.name, context.dest_node, context.ref_node, (e.sass_line if e.sass_line)) end
Generated with the Darkfish Rdoc Generator 2.