Displaying 1 result from an estimated 1 matches for "render_opt".
Did you mean:
renderopt
2006 Mar 12
0
ERB and Builder template engines shouldn''t be so heavily wired in ActionView::Base
...ase should work just like a register / dispatcher for
template engines.
2. Every template engine (including ERB and Builder) should be placed
inside the vendor directory.
3. Every template engine should have a base class
ActionView::Engines::EngineName with these methods:
self::template_exists?( render_options={} )
self::type # return :rhtml, :rxml, :vcrb, etc.
initialize( action_view )
render( render_options={}, local_assigns={} )
4. Only used template engines will be then registered in environment.rb:
ActionView::Base.register_template_handler( ''erb'' )
# does: require( "ve...