search for: handler_class

Displaying 1 result from an estimated 1 matches for "handler_class".

2006 Mar 12
0
ERB and Builder template engines shouldn''t be so heavily wired in ActionView::Base
...tension, instead pass the render_options to all registered handler''s template_exists? and check if some handler responds true. 3. File rendering would be processed this way (from ActionView::Base): def render_file( render_options={}, local_assigns={} ) @@template_handlers.each_value do |handler_class| if handler_class::template_exists?( render_options ) return handler_class.new( render_options, local_assigns ) end end raise ''no handler is able to render the file!'' end Inline rendering would be processed this way (from ActionView::Base): def render_inline( render_opt...