[Catalyst] "featurizing" a catalyst app

Peter Karman peter at peknet.com
Sun Jun 28 15:42:19 GMT 2009


Tomas Doran wrote on 6/28/09 10:08 AM:
> 
> 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'.
> 

fwiw, you can see an example of this on CPAN in CatalystX::CMS::View


-- 
Peter Karman  .  http://peknet.com/  .  peter at peknet.com
gpg key: 37D2 DAA6 3A13 D415 4295  3A69 448F E556 374A 34D9



More information about the Catalyst mailing list