Hi,
I have been working on converting a script that I have been using for my
self for a while which I use as a templating engine in vim and for creating
whole new files (and soon creating whole directory trees from templates). It
uses template toolkit for the actual templates.
I have several questions about this before I try to put the module on CPAN
first what should I call this (my current script is called itemplate but
that doesn't seem to fit with CPAN naming conventions).
The next question is should I include the templates I use with the module? I
have templates that generate perl scripts and packages that follow PBP as
well as XHML skelitons etc. If I include these template files, how do I make
Module::Build install them and how do I determine where the templates have
been installed so that I can create the Template toolkit path correctly?
Finally I have been thinking of creating a module to handle svn (or cvs,
net etc) like commandline parameters (ie cmd subcmd -parms ...) which I will
use with this module (and also sick on CPAN). It will use Getopt::Long for
most of its functionality but will be able to do work of finding what
parameters each sub command accepts. So again what would be a good name I
imagine Getopt::something (SubCommand?)
Any suggestions would be helpful
Thanks
Ivan Wills

Signature
email/jabber: ivan.wills@gmail.com
/
/ _ _
/ \ / | | | |
/ \/ \_| | |
Hans Dieter Pearcey - 15 Jun 2008 23:27 GMT
> Finally I have been thinking of creating a module to handle svn (or cvs, net
> etc) like commandline parameters (ie cmd subcmd -parms ...) which I will use
> with this module (and also sick on CPAN). It will use Getopt::Long for most of
> its functionality but will be able to do work of finding what parameters each
> sub command accepts. So again what would be a good name I imagine
> Getopt::something (SubCommand?)
I don't have suggestions on the rest, but don't reinvent this wheel; look at
App::Cmd and App::CLI (and there are probably others on CPAN that I don't know
of).
hdp.
Andy Lester - 16 Jun 2008 00:34 GMT
> I don't have suggestions on the rest, but don't reinvent this wheel;
Unless you can make a better wheel.
--
Andy Lester => andy@petdance.com => www.petdance.com => AIM:petdance
Ivan Wills - 16 Jun 2008 00:54 GMT
> > Finally I have been thinking of creating a module to handle svn (or cvs,
> net
[quoted text clipped - 14 lines]
>
> hdp.
App::Cmd looks interesting but I'm not sure it does exactly what I need but
will check it out further. As for App::CLI it could do with some
documentation to describe what it does and how to use it.
Ivan

Signature
email/jabber: ivan.wills@gmail.com
/
/ _ _
/ \ / | | | |
/ \/ \_| | |
Johan Vromans - 16 Jun 2008 09:28 GMT
[Quoting Ivan Wills, on June 16 2008, 09:54, in "Re: Template oriente"]
> As for App::CLI it could do with some
> documentation to describe what it does and how to use it.
That would be a most welcome contribution.
-- Johan
Ivan Wills - 19 Jun 2008 07:12 GMT
> Hi,
>
[quoted text clipped - 31 lines]
> / \ / | | | |
> / \/ \_| | |
I'm now thinking of calling the module Template::CMD or possibly
Template::CLI depending on weather I use App::CMD or App::CLI does this make
sense?

Signature
email/jabber: ivan.wills@gmail.com
/
/ _ _
/ \ / | | | |
/ \/ \_| | |