Sha256: be6f9a1f15d89b94057fd6a204e7576042dacbbc9e6d821c1a80b1f52bc777a9
Contents?: true
Size: 447 Bytes
Versions: 4
Compression:
Stored size: 447 Bytes
Contents
require 'ostruct' require 'erubis' module SoapyBing module Soap class TemplateRenderer < OpenStruct TEMPLATE_PATH = File.expand_path('../templates', __FILE__) def render(template_name) template_body = read(template_name) Erubis::XmlEruby.new(template_body).result(binding) end private def read(name) File.read(File.join(TEMPLATE_PATH, "#{name}.erb.xml")) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems