« Return to Thread: "featurizing" a catalyst app

Re: "featurizing" a catalyst app

by Tomas Doran :: Rate this Message:

Reply to Author | View in Thread


On 28 Jun 2009, at 09:16, Robert Buels wrote:

> Rodrigo wrote:
> > But how about the /root part? Can mixed-up root dirs be seen as a
> > single root dir easily?
>
> I'm interested in making a pluggable app as well.  Seems like you  
> and I would want the ability to specify an arrayref for MyApp-
> >config->{root}, and have that work.  Poking around cursorily, that  
> doesn't seem to be supported right now.  Can somebody who knows  
> what they're talking about (i.e. not me) confirm?

Assuming that you're mandating a TT view for your pluggable parts,  
then you can just subclass View::TT to have an INCLUDE_PATH which  
picks up the 'root' directories from all your loaded 'Components'.

Cheers
t0m


_______________________________________________
List: Catalyst@...
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@.../
Dev site: http://dev.catalyst.perl.org/

 « Return to Thread: "featurizing" a catalyst app