Class: SoapyBing::Soap::TemplateRenderer

Inherits:
OpenStruct
  • Object
show all
Defined in:
lib/soapy_bing/soap/template_renderer.rb

Constant Summary collapse

TEMPLATE_PATH =
File.expand_path('../templates', __FILE__)

Instance Method Summary collapse

Instance Method Details

#render(template_name) ⇒ Object



10
11
12
13
# File 'lib/soapy_bing/soap/template_renderer.rb', line 10

def render(template_name)
  template_body = read(template_name)
  Erubis::XmlEruby.new(template_body).result(binding)
end