[tpm] Perl Template 101

Uri Guttman uri at stemsystems.com
Tue May 15 10:32:12 PDT 2012


On 05/15/2012 11:36 AM, Olaf Alders wrote:
>
> On 2012-05-13, at 11:48 AM, Alejandro Imass wrote:
>
>> On Sat, May 12, 2012 at 3:16 PM, Antonio Sun<antoniosun at lavabit.com>  wrote>  Hi,
>>>
>>> It's been a while since I last played with Perl Templates. I know it is very
>>> easy, but I'm still wondering if you know some good intro/tutorial that can
>>> help me to pick it up easily, considering there are now zero knowledge
>>> remain in me about it.
>>>
>>> Also, when talking about template-ing, we can't avoid talking about the data
>>> sources. What would be the lightest module to use? Most probably I need only
>>
>> TT2 is definitively the way to go for very powerful templates. The
>> documentation is simply fantastic, and you probably won't need
>> anything else but:
>>
>> perldoc Template::Manual
>> perldoc Template::Manual::Intro
>> http://template-toolkit.org/
>
> I really do like TT as well.  Just thought I'd also point out that Text::XSlate also seems to be a popular choice: https://metacpan.org/module/Text::Xslate  That's likely the next templating system I'll play with.

well, i have to put in a plug for my Template::Simple. it is much easier 
to learn and use (only 4 markups) and it can do almost any templating 
job you want. also with the compiler option, it is the fastest templater 
around (much faster than TT). most templating doesn't need all the 
complexity of the larger templaters but they are popular. check this 
module out and you may be surprised at its effectiveness and yes, 
simplicity.

thanx,

uri


More information about the toronto-pm mailing list