lib/webgen/contentprocessor/builder.rb in gettalong-webgen-0.5.7.20090227 vs lib/webgen/contentprocessor/builder.rb in gettalong-webgen-0.5.8.20090507
- old
+ new
@@ -4,17 +4,20 @@
# Processes content that is valid Ruby to build an XML tree. This is done by using the +builder+
# library.
class Builder
+ include Deprecated
+
# Process the content of +context+ which needs to be valid Ruby code. The special variable +xml+
# should be used to construct the XML content.
def call(context)
require 'builder'
- node = context.content_node
- ref_node = context.ref_node
- dest_node = context.dest_node
+ website = deprecate('website', 'context.website', context.website)
+ node = deprecate('node', 'context.node', context.content_node)
+ ref_node = deprecate('ref_node', 'context.ref_node', context.ref_node)
+ dest_node = deprecate('dest_node', 'context.dest_node', context.dest_node)
xml = ::Builder::XmlMarkup.new(:indent => 2)
eval(context.content, binding, context.ref_node.absolute_lcn)
context.content = xml.target!
context