lib/action_view/renderer/template_renderer.rb
# Renders the given template. An string representing the layout can be
# supplied as well.
Renders the given template. An string representing the layout can be
supplied as well.
Renders the given template . An string representing the layout can be supplied as well .
def render_template(template, layout_name = nil, locals = {}) 
      view, locals = @view, locals || {}
      render_with_layout(layout_name, locals) do |layout|
        instrument(:template, :identifier => template.identifier, :layout => layout.try(:virtual_path)) do
          template.render(view, locals) { |*name| view._layout_for(*name) }
        end
      end
    end
def render_template ( template , layout_name = nil , locals = { } ) view , locals = @view , locals || { } render_with_layout ( layout_name , locals ) do | layout | instrument ( :template , :identifier => template . identifier , :layout => layout . try ( :virtual_path ) ) do template . render ( view , locals ) { | * name | view . _layout_for ( * name ) } end end end
Renders the given template.
Renders the given template .
#:nodoc:
template
layout_name
locals