class ActionView::TemplateRenderer

def render_template(view, template, layout_name, locals)

Experimental RBS support (using type sampling data from the type_fusion project).

def render_template: ((#<Class:0x000000011ee7c768> | #<Class:0x00000001231ff3c8>) view, ActionView::Template::Renderable template, Proc? layout_name, Hash locals) -> ActionView::AbstractRenderer::RenderedTemplate

This signature was generated using 2 samples from 1 application.

supplied as well.
Renders the given template. A string representing the layout can be
def render_template(view, template, layout_name, locals)
  render_with_layout(view, template, layout_name, locals) do |layout|
    ActiveSupport::Notifications.instrument(
      "render_template.action_view",
      identifier: template.identifier,
      layout: layout && layout.virtual_path
    ) do
      template.render(view, locals) { |*name| view._layout_for(*name) }
    end
  end
end