class Gemstrap::Template
Public Class Methods
render(template_path, hash)
click to toggle source
# File lib/gemstrap/template.rb, line 6 def self.render(template_path, hash) Template.new(hash).render(template_path) end
Public Instance Methods
render(template_path)
click to toggle source
# File lib/gemstrap/template.rb, line 10 def render(template_path) template = ERB.new(IO.read(template_path)) template.result(binding) end