Re: [Catalyst] Best practice: How to build app parts reusable?

2009-06-10 Thread Robert Krimen
On Tue, Jun 9, 2009 at 1:39 PM, Tomas Doran wrote: > > This is neat, but in no way taking advantage of the new Moose code. > > I have some code in the CatalystX::DynamicComponent namespace meant to > solve this problem: > > http://github.com/bobtfish/catalyst-dynamicappdemo/tree/master > http://s

Re: [Catalyst] Best practice: How to build app parts reusable?

2009-06-09 Thread Tomas Doran
On 9 Jun 2009, at 04:29, Robert Krimen wrote: On Mon, Jun 8, 2009 at 11:55 AM, Matt S Trout cl...@trout.me.uk> wrote: See Catalyst::Plugin::AutoCRUD for injecting extra components into the various areas during application setup. I had this problem last week, and released a solution today: htt

Re: [Catalyst] Best practice: How to build app parts reusable?

2009-06-09 Thread Stephen Clouse
On Mon, Jun 8, 2009 at 10:42 PM, Robert Buels wrote: > Matt S Trout wrote: > >> Just have your controller base class set: >> >> $c->stash(additional_template_paths => $self->template_paths); >> > > Can you do something similar if using Mason? > Yes, use multiple comp_roots: package MyApp::View

Re: [Catalyst] Best practice: How to build app parts reusable?

2009-06-08 Thread Robert Buels
Matt S Trout wrote: Just have your controller base class set: $c->stash(additional_template_paths => $self->template_paths); Can you do something similar if using Mason? Rob ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/c

Re: [Catalyst] Best practice: How to build app parts reusable?

2009-06-08 Thread Robert Krimen
On Mon, Jun 8, 2009 at 11:55 AM, Matt S Trout wrote: > > See Catalyst::Plugin::AutoCRUD for injecting extra components into the > various areas during application setup. I had this problem last week, and released a solution today: http://search.cpan.org/perldoc?CatalystX::InjectComponent Based

Re: [Catalyst] Best practice: How to build app parts reusable?

2009-06-08 Thread Matt S Trout
On Sun, May 31, 2009 at 06:06:48PM +0200, Matthias Dietrich wrote: > Hi, > > in one of my Catalyst apps I'm building application parts that I want > to reuse in other Catalyst apps where possible. What's the best > practice to do that? I mean the complete parts from controller, to > model,

Re: [Catalyst] Best practice: How to build app parts reusable?

2009-06-02 Thread Eden Cardim
On Sun, May 31, 2009 at 1:06 PM, Matthias Dietrich wrote: > in one of my Catalyst apps I'm building application parts that I want to > reuse in other Catalyst apps where possible.  What's the best practice to do > that?  I mean the complete parts from controller, to model, DBIC schema > classes an

Re: [Catalyst] Best practice: How to build app parts reusable?

2009-06-02 Thread Iain
On Tue, 2009-06-02 at 11:05 +0200, Zbigniew Lukasiak wrote: > Just one idea - in the TT view there is a > http://search.cpan.org/~mramberg/Catalyst-View-TT-0.29/lib/Catalyst/View/TT.pm#DYNAMIC_INCLUDE_PATH > option. This is exactly what we used in this situation, as mentioned before we have wra

Re: [Catalyst] Best practice: How to build app parts reusable?

2009-06-02 Thread Zbigniew Lukasiak
On Sun, May 31, 2009 at 6:06 PM, Matthias Dietrich wrote: > Hi, > > in one of my Catalyst apps I'm building application parts that I want to > reuse in other Catalyst apps where possible.  What's the best practice to do > that?  I mean the complete parts from controller, to model, DBIC schema > cl

Re: [Catalyst] Best practice: How to build app parts reusable?

2009-06-01 Thread Matthias Dietrich
Hm, should this be posted on Catalyst-dev? Am 31.05.2009 um 18:06 schrieb Matthias Dietrich: Hi, in one of my Catalyst apps I'm building application parts that I want to reuse in other Catalyst apps where possible. What's the best practice to do that? I mean the complete parts from co

[Catalyst] Best practice: How to build app parts reusable?

2009-05-31 Thread Matthias Dietrich
Hi, in one of my Catalyst apps I'm building application parts that I want to reuse in other Catalyst apps where possible. What's the best practice to do that? I mean the complete parts from controller, to model, DBIC schema classes and templates. Let's assume one part is a guestbook (no