Renders the template
which is given as a string as either rhtml or rxml depending on
template_extension. The hash in local_assigns is made
available as local variables.
# File actionpack/lib/action_view/base.rb, line 239
def render_template(template_extension, template, file_path = nil, local_assigns = {})
if handler = @@template_handlers[template_extension]
template ||= read_template_file(file_path, template_extension) # Make sure that a lazyily-read template is loaded.
delegate_render(handler, template, local_assigns)
else
compile_and_render_template(template_extension, template, file_path, local_assigns)
end
end