Sha256: 1d4976ab7acf0a0b4e10c9f1511a2182383feb6a54e192d5be2393f60c7cac39
Contents?: true
Size: 545 Bytes
Versions: 2
Compression:
Stored size: 545 Bytes
Contents
# -*- encoding: utf-8 -*- 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.alcn).render context rescue Exception => e raise RuntimeError, "Error converting Sass markup to CSS in <#{context.ref_node.alcn}>: #{e.message}", e.backtrace end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gettalong-webgen-0.5.9.20090620 | lib/webgen/contentprocessor/sass.rb |
gettalong-webgen-0.5.9.20090626 | lib/webgen/contentprocessor/sass.rb |