method

render_template

render_template(template, layout_name = nil, locals = {})
public

For streaming, instead of rendering a given a template, we return a Body object that responds to each. This object is initialized with a block that knows how to render the template.