Parent

Methods

Class Index [+]

Quicksearch

Webgen::ContentProcessor::Scss

Processes content in sassy CSS markup (used for writing CSS files) using the haml library.

Public Instance Methods

call(context) click to toggle source

Convert the content in scss markup to CSS.

    # File lib/webgen/contentprocessor/scss.rb, line 9
 9:     def call(context)
10:       require 'sass'
11: 
12:       context.content = ::Sass::Engine.new(context.content, :filename => context.ref_node.alcn, :syntax => :scss).render
13:       context
14:     rescue LoadError
15:       raise Webgen::LoadError.new('sass', self.class.name, context.dest_node, 'haml')
16:     rescue ::Sass::SyntaxError => e
17:       raise Webgen::RenderError.new(e, self.class.name, context.dest_node, context.ref_node, (e.sass_line if e.sass_line))
18:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.