Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Catalyst: Users

Catalyst::Helper Changes

 

 

Catalyst users RSS feed   Index | Next | Previous | View Threaded


montuori at gmail

Sep 8, 2009, 9:53 AM

Post #1 of 6 (1360 views)
Permalink
Catalyst::Helper Changes

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


devin.austin at gmail

Sep 8, 2009, 12:14 PM

Post #2 of 6 (1246 views)
Permalink
Re: Catalyst::Helper Changes [In reply to]

On Tue, Sep 8, 2009 at 10:53 AM, kevin montuori <montuori [at] gmail> 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 [at] lists
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive:
> http://www.mail-archive.com/catalyst [at] lists/
> Dev site: http://dev.catalyst.perl.org/
>
>

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

-Devin
--
Devin Austin
http://www.codedright.net
http://www.dreamhost.com/r.cgi?326568/hosting.html - Host with DreamHost!


montuori at gmail

Sep 8, 2009, 12:47 PM

Post #3 of 6 (1248 views)
Permalink
Re: Catalyst::Helper Changes [In reply to]

On Tue, Sep 8, 2009 at 3:14 PM, Devin Austin <devin.austin [at] gmail> 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


bobtfish at bobtfish

Sep 9, 2009, 5:35 PM

Post #4 of 6 (1230 views)
Permalink
Re: Catalyst::Helper Changes [In reply to]

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

> On Tue, Sep 8, 2009 at 3:14 PM, Devin Austin
> <devin.austin [at] gmail> 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 [at] lists
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst [at] lists/
Dev site: http://dev.catalyst.perl.org/


devin.austin at gmail

Sep 9, 2009, 6:23 PM

Post #5 of 6 (1239 views)
Permalink
Re: Catalyst::Helper Changes [In reply to]

On Wed, Sep 9, 2009 at 6:35 PM, Tomas Doran <bobtfish [at] 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 [at] gmail>
>> 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 [at] lists
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive:
> http://www.mail-archive.com/catalyst [at] lists/
> 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

--
Devin Austin
http://www.codedright.net
http://www.dreamhost.com/r.cgi?326568/hosting.html - Host with DreamHost!


montuori at gmail

Sep 10, 2009, 5:06 AM

Post #6 of 6 (1215 views)
Permalink
Re: Catalyst::Helper Changes [In reply to]

>>>>> "DA" == Devin Austin <devin.austin [at] gmail> 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 [at] gmail

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

Catalyst users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.