Class: ActionView::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/markaby/rails/deprecated.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#render_template(template_extension, template, file_path = nil, local_assigns = {}) ⇒ Object



3
4
5
6
7
8
9
10
# File 'lib/markaby/rails/deprecated.rb', line 3

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)
    handler.new(self).render(template, local_assigns, file_path)
  else
    compile_and_render_template(template_extension, template, file_path, local_assigns)
  end
end