Parent

Methods

Class Index [+]

Quicksearch

Webgen::ContentProcessor::Erb

Processes embedded Ruby statements.

Public Instance Methods

call(context) click to toggle source

Process the Ruby statements embedded in the content of context.

    # File lib/webgen/contentprocessor/erb.rb, line 11
11:     def call(context)
12:       require 'erb'
13:       extend(ERB::Util)
14: 
15:       erb = ERB.new(context.content)
16:       erb.filename = context.ref_node.alcn
17:       context.content = erb.result(binding)
18:       context
19:     rescue Exception => e
20:       raise Webgen::RenderError.new(e, self.class.name, context.dest_node,
21:                                     Webgen::Common.error_file(e), Webgen::Common.error_line(e))
22:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.