Request for naming help (templating module)
- From: "Eric J. Roode" <sdn.girths00869@xxxxxxxxxxx>
- Date: Thu, 08 Sep 2005 23:34:58 -0500
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello all,
I have recently written a templating module and released it to
CPAN. There are approximately aleph-null templating modules already
on CPAN, but I honestly believe that there is a niche for this new
one. Its niche is "simplicity"; it is fairly minimalist, easy to
use, fast, and (I'd like to think) easy to learn.
[Side note: I think that the Template Toolkit, Text::Template,
and Mason are *fantastic*, but when you need something simple, like
for a couple of one-liners, they can be unwieldy and cumbersome,
imho]
I have tentatively named my module Text::QuickTemplate, and you
can find it on CPAN under that name. I asked the Naming Gods to
bless this name into the official registry, and brian d foy
hesitated. He brought up some objections to the name, and I
reluctantly admit he has some valid points.
You can follow the whole discussion in the modules@xxxxxxxx
archive for last month at
http://www.xray.mpe.mpg.de/mailing-lists/modules/2005-08/threads.html
(search for "QuickTemplate")
But the gist of it is: brian d foy feels that the name is not
suggestive enough of what the module's about. It doesn't say to the
programmer what separates it from the other templating modules. He
suggests that the module's name should perhaps focus on its
printf-like behavior; on that point, I disagree. But hey -- in
general, I agree with him.
So help me come up with a better name, please. I think it should
go in the Text:: top-level hierarchy. I also think that it should
have Template somewhere in its name. That doesn't leave a lot of
room for anything else, unfortunately. Here are some other
templating module names, for reference:
Template dTemplate Text::FastTemplate Text::FillIn Text::Macros
Text::MetaText Text::Template Text::TagTemplate Text::Templet
Here are some possiblities, to get the suggestions started:
Text::EasyTemplate
Text::StupidTemplate
Text::Overlay
Text::StringMaker
Text::ExpandPlaceholders (awfully long, don't you think?)
String::Template
String::Substitution (sounds too much like an RE
module...)
Here are what I consider to be the module's strengths, as compared to
other templating modules:
1. Simplicity; only one pure-perl module file.
2. Safety: no variable interpolation or executable content.
3. Ease of learning (I hope! ;-) and use.
4. Separation of content from computation (yeah, every template
module does that).
5. One-stop shopping (template + fill-in values) in the *printf
functions.
6. Printf-like formatting in the template placeholders, whether
the
*printf functions are used or not.
7. Speed. Text::FastTemplate blows my module away, but my module
blows away Template and Text::Template.
I welcome all suggestions, and I thank you all in advance.
- --
Eric
`$=`;$_=\%!;($_)=/(.)/;$==++$|;($.,$/,$,,$\,$",$;,$^,$#,$~,$*,$:,@%)=(
$!=~/(.)(.).(.)(.)(.)(.)..(.)(.)(.)..(.)......(.)/,$"),$=++;$.++;$.++;
$_++;$_++;($_,$\,$,)=($~.$"."$;$/$%[$?]$_$\$,$:$%[$?]",$"&$~,$#,);$,++
;$,++;$^|=$";`$_$\$,$/$:$;$~$*$%[$?]$.$~$*${#}$%[$?]$;$\$"$^$~$*.>&$=`
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (MingW32) - WinPT 0.7.96rc1
iD8DBQFDIRE0Y96i4h5M0egRAg1vAJ9AihnxoY+MlKZTPicBd4+J0GgNBgCg6crV
H70ZzkGLehPRCPtHgR+evvE=
=n33P
-----END PGP SIGNATURE-----
.
- Follow-Ups:
- Re: Request for naming help (templating module)
- From: Sherm Pendley
- Re: Request for naming help (templating module)
- From: John Bokma
- Re: Request for naming help (templating module)
- Prev by Date: Re: Getopt::Std question
- Next by Date: Re: Request for naming help (templating module)
- Previous by thread: [ANNOUNCE] POD2::IT 0.09
- Next by thread: Re: Request for naming help (templating module)
- Index(es):