module Webgen::ContentProcessor::Haml
Processes content in Haml markup using the
haml library.
Public Class Methods
call(context)
click to toggle source
Convert the content in haml markup to HTML.
# File lib/webgen/content_processor/haml.rb, line 12 def self.call(context) context.content = ::Haml::Engine.new(context.content, :filename => context.ref_node.alcn). render(Object.new, :context => context) context rescue ::Haml::Error => e line = (e.line ? e.line + 1 : Webgen::Error.error_line(e)) raise Webgen::RenderError.new(e, 'content_processor.haml', context.dest_node, nil, line) end