class L::Template::Renderer

Public Instance Methods

render(template, filename: 'ERB String') click to toggle source
# 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
render_file(f) click to toggle source
# File lib/rub/l/template.rb, line 36
def render_file(f)
        f = C.path f
        
        render f.read, filename: f
end