Object
Processes embedded Ruby statements.
Process the Ruby statements embedded in the content of context.
# File lib/webgen/contentprocessor/erb.rb, line 10 def call(context) require 'erb' extend(ERB::Util) erb = ERB.new(context.content) erb.filename = context.ref_node.alcn context.content = erb.result(binding) context rescue Exception => e raise Webgen::RenderError.new(e, self.class.name, context.dest_node, Webgen::Common.error_file(e), Webgen::Common.error_line(e)) end
Generated with the Darkfish Rdoc Generator 2.