How can I use views and layouts with Ruby and ERB (not Rails)?
Today i\'m using this code to render my view:
def render(template_path, context = sel
If you use the Tilt gem (which I think is what Sinatra uses) you could do something like
template_layout = Tilt::ERBTemplate.new(layout) template_layout.render { Tilt::ERBTemplate.new(template).render(context.get_binding) }