Class: ActionView::Base
- Inherits:
-
Object
- Object
- ActionView::Base
- 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
5 6 7 8 9 10 11 12 |
# File 'lib/markaby/rails/deprecated.rb', line 5 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 |