On Tue, Aug 28, 2007 at 08:45:25PM -0700, Geoffrey Grosenbach wrote:
> Trunk Issue: Because of the use of 'autoload', template handlers other
> than Erubis are not loaded automatically (Haml, XMLBuilder). Either
> this should be fixed, or the documentation should be updated to
> instruct people how to use non-Erb template engines.
> 
> Apparently the solution is to do something like this in merb_init.rb:
> 
>   ::Merb::AbstractController.register_engine ::Merb::Template::Haml, %w[ haml 
> ]

You just need to reference the class in merb_init.rb to trigger the
autoload, e.g.

Merb::Template::Haml

> So the question is:
> 
> * Is this the permanent situation for the future?
> * Can I update the docs to reflect this requirement?

It's now documented the merb_init.rb which is installed by merb -g. But I
agree, History.txt should have info about upgrading existing projects.

Please see:
http://merb.devjavu.com/projects/merb/ticket/130
http://merb.devjavu.com/projects/merb/ticket/133
_______________________________________________
Merb-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/merb-devel

Reply via email to