Class: L::Template::Renderer
- Defined in:
- lib/rub/l/template.rb
Instance Method Summary collapse
Instance Method Details
#render(template, filename: 'ERB String') ⇒ Object
31 32 33 34 35 |
# File 'lib/rub/l/template.rb', line 31 def render(template, filename: 'ERB String') t = ERB.new(template, nil, '-') t.filename = filename.to_s t.result(binding) end |