Sha256: 83a0adf940703b4cb223bcf82d7bfa88f298da7e9119c9aedf2b2e7f42267454
Contents?: true
Size: 629 Bytes
Versions: 3
Compression:
Stored size: 629 Bytes
Contents
$:.unshift File.dirname(__FILE__) require 'rexml/document' require 'template_runner' module BuildMaster class XTemplate def initialize(template, element_processor) @template = template @element_processor = element_processor end def process(source) output_xml = process_xml(source) return output_xml end private def process_xml(source, &evaluator) output_xml = REXML::Document.new runner = TemplateRunner.new(output_xml, @element_processor, source) runner.process @template return output_xml end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
BuildMaster-1.0.6 | lib/buildmaster/site/xtemplate.rb |
BuildMaster-1.0.9 | lib/buildmaster/site/xtemplate.rb |
BuildMaster-1.1.9 | lib/buildmaster/site/xtemplate.rb |