Sha256: c795982217d3e8dc8808f24cb78f87fc20f8de42bff88ca5f41a13fdc93d699b
Contents?: true
Size: 496 Bytes
Versions: 2
Compression:
Stored size: 496 Bytes
Contents
module Webgen::ContentProcessor # Processes content in Sass markup (used for writing CSS files) using the +haml+ library. class Sass # Convert the content in +sass+ markup to CSS. def call(context) require 'sass' context.content = ::Sass::Engine.new(context.content, :filename => context.ref_node.absolute_lcn).render context rescue Exception => e raise RuntimeError, "Error converting Sass markup to CSS: #{e.message}", e.backtrace end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
webgen-0.5.1 | lib/webgen/contentprocessor/sass.rb |
webgen-0.5.2 | lib/webgen/contentprocessor/sass.rb |