Sha256: 648f7a02c33a2785ba7aa5cc12a78cf6aea27275d9a550995f0084b04ee25a48
Contents?: true
Size: 217 Bytes
Versions: 1
Compression:
Stored size: 217 Bytes
Contents
module Pimento module Renderable def render(name, options = {}) template = open(File.dirname(__FILE__) + '/../../template/%s.xml.erb' % name).read ERB.new(template).result(binding) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pimento-0.0.2 | lib/pimento/renderable.rb |