Catalyst::Helper Changes

View: New views
6 Messages — Rating Filter:   Alert me  

Catalyst::Helper Changes

by kevin montuori :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all --

I'd like to modify what Catalyst::Helper creates when initializing a new product.  I'm wondering if there's a "best practice" for this or if I'm on my own.  

Thanks for any pointers.

k.

--
kevin montuori


_______________________________________________
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/

Re: Catalyst::Helper Changes

by Devin Austin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



On Tue, Sep 8, 2009 at 10:53 AM, kevin montuori <montuori@...> wrote:
Hi all --

I'd like to modify what Catalyst::Helper creates when initializing a new product.  I'm wondering if there's a "best practice" for this or if I'm on my own.  

Thanks for any pointers.

k.

--
kevin montuori


_______________________________________________
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/



Hi Kevin,

Can you explain a little more in depth what you're looking to do?

-Devin

_______________________________________________
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/

Re: Catalyst::Helper Changes

by kevin montuori :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, Sep 8, 2009 at 3:14 PM, Devin Austin <devin.austin@...> wrote:

Can you explain a little more in depth what you're looking to do?

Sure.  Among other things I'd like the myapp.conf file to live in $root/etc/config and be YAML format.  This involves creating the directories, changing the conf file contents and name, and adding a line to MyApp.pm.  There's more, but I think this is a fairly representative example of the kind of thing.


k. 

-- 
kevin montuori


_______________________________________________
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/

Re: Catalyst::Helper Changes

by Tomas Doran :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On 8 Sep 2009, at 20:47, kevin montuori wrote:

> On Tue, Sep 8, 2009 at 3:14 PM, Devin Austin  
> <devin.austin@...> wrote:
>
> Can you explain a little more in depth what you're looking to do?
>
> Sure.  Among other things I'd like the myapp.conf file to live in  
> $root/etc/config and be YAML format.  This involves creating the  
> directories, changing the conf file contents and name, and adding a  
> line to MyApp.pm.  There's more, but I think this is a fairly  
> representative example of the kind of thing

There is a plan to allow 'templates' for applications which would  
allow you to do this trivially..

This will be coming after the google summer of code has been merged  
and released, which it is currently being cleaned up to do do. :)

Further details / thoughts about where people's plans with this go /  
how it would work available to anyone arriving in #catalyst-dev for a  
chat about it who is prepared to write those thoughts down - however  
at the moment we're concentrating on getting the more split-out  
application templates live before we do the next stage..

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/

Re: Catalyst::Helper Changes

by Devin Austin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



On Wed, Sep 9, 2009 at 6:35 PM, Tomas Doran <bobtfish@...> wrote:

On 8 Sep 2009, at 20:47, kevin montuori wrote:

On Tue, Sep 8, 2009 at 3:14 PM, Devin Austin <devin.austin@...> wrote:

Can you explain a little more in depth what you're looking to do?

Sure.  Among other things I'd like the myapp.conf file to live in $root/etc/config and be YAML format.  This involves creating the directories, changing the conf file contents and name, and adding a line to MyApp.pm.  There's more, but I think this is a fairly representative example of the kind of thing

There is a plan to allow 'templates' for applications which would allow you to do this trivially..

This will be coming after the google summer of code has been merged and released, which it is currently being cleaned up to do do. :)

Further details / thoughts about where people's plans with this go / how it would work available to anyone arriving in #catalyst-dev for a chat about it who is prepared to write those thoughts down - however at the moment we're concentrating on getting the more split-out application templates live before we do the next stage..

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/


I will quit being a tool and get my shit released.  Please, send me any ideas you have your way with regards to "I want to be able to do this".

-Devin


_______________________________________________
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/

Re: Catalyst::Helper Changes

by kevin montuori :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

>>>>> "DA" == Devin Austin <devin.austin@...> writes:

 DA> I will quit being a tool and get my shit released.  

Heh.  But that's *my* motto.  

 DA> Please, send me any ideas you have your way with regards to "I want
 DA> to be able to do this".

There's a litany of tweaks I usually make after creating a new catalyst
project.  Assuming the project MyApp, these usually include:

  mkdir MyApp/{.control,bin,etc}
  mkdir MyApp/etc/{conf,DDL,SQL,LDIF}
  mkdir MyApp/lib/MyApp/Schema/MyApp/{Result,ResultSet}
  mkdir MyApp/lib/HTML/FormFu/Validator/MyApp
  mkdir MyApp/root/forms
 
I generally add content to the MyApp.pm file: ConfigLoader
substitutions, a new ConfigLoader base, some plugins that are almost
always used.

Usually there's a Schema/MyApp.pm file that's standard boilerplate.

There are a couple of files I add to the bin directory so they're kept
with the project.

Also I create a number of .../.template files and populate them with
project-specific templates (for the benefit of emacs).  

There's probably more ... that's why I'm looking to automate it.

k.

--
kevin montuori
montuori@...

_______________________________________________
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/