[LA.pm] What to call a small module
Marco Palma
marcoapalma at yahoo.com
Mon Apr 30 19:10:37 PDT 2012
Sent this privately but I meant to spam...
>________________________________
> From: Marco Palma <marcoapalma at yahoo.com>
>To: Ben Tilly <btilly at gmail.com>
>Sent: Monday, April 30, 2012 7:09 PM
>Subject: Re: [LA.pm] What to call a small module
>
>
>Hash::Tatertot
>
>
> or
>
>
>
>Hash::TemplateTot
>
>
>
>Tater tots are very yummy. They were the food I tolerated the longest at my college cafeteria.
>
>
>http://en.wikipedia.org/wiki/Tater_Tots
>
>
>And to paraphrase Miyagawa-san, cute names are easy to remember and Rock!!!:
>
>
>
>http://search.cpan.org/~miyagawa/Twiggy-0.1020/lib/Twiggy.pm#NAMING
>
>
>
>
>>________________________________
>> From: Ben Tilly <btilly at gmail.com>
>>To: Los Angeles Perl Mongers <c>
>>Sent: Monday, April 30, 2012 6:47 PM
>>Subject: [LA.pm] What to call a small module
>>
>>I have a small module, I just don't know what to call it. Does anyone
>>have any suggestions?
>>
>>It just takes a hash, and expands it as a template, with the variables
>>referring to other keys. It can even handle nested hashes. So you
>>might pass it something like this:
>>
>> {
>> user => 'btilly',
>> project_root => '/home/[% user %]/foo',
>> template_root => '[% project_root %]/app/view',
>> escaped => '\[% watch_this %]',
>> }
>>
>>and then get back:
>>
>> {
>> user => 'btilly',
>> project_root => '/home/btilly/foo',
>> template_root => '/home/btilly/foo//app/view',
>> escaped => '[% watch_this %]',
>> }
>>
>>The use case is mostly for configuration files, where you'd have a
>>hash describing a basic sandbox template, override the values you need
>>to, and
then get the configuration for a developer. With this sort of
>>templating, the amount that you need to override goes way down.
>>_______________________________________________
>>Losangeles-pm mailing list
>>Losangeles-pm at pm.org
>>http://mail.pm.org/mailman/listinfo/losangeles-pm
>>
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/losangeles-pm/attachments/20120430/4ca681a3/attachment.html>
More information about the Losangeles-pm
mailing list