Module: Pimento::Renderable
Instance Method Summary collapse
Instance Method Details
#render(name, options = {}) ⇒ Object
3 4 5 6 |
# File 'lib/pimento/renderable.rb', line 3 def render(name, = {}) template = open(File.dirname(__FILE__) + '/../../template/%s.xml.erb' % name).read ERB.new(template).result(binding) end |