Re: Using a "hash" as a Template::Provider
"Philippe Bruhat (BooK)" <[email protected]> Fri, 15 Mar 2013 09:26:08 +0100
| Newsgroups | gmane.comp.lang.perl.modules.template-toolkit |
|---|---|
| Message-ID | <20130315082608.GC4608@zlott> |
On Fri, Mar 15, 2013 at 06:19:33AM +0000, Andy Wardley wrote:
> On 15/03/2013 01:13, Philippe Bruhat (BooK) wrote:
> >My question is: did I overlook a simpler way to do this?
>
> You can use the BLOCKS configuration item to define templates up front:
>
> http://template-toolkit.com/docs/manual/Config.html#section_BLOCKS
>
Thanks! This is exactly what I was looking for.
I'll refrain from uploading to CPAN, then. :-)
--
Philippe Bruhat (BooK)
No matter who you may be, there is always someone who is a little worse
because he thinks he is a little better.
(Moral from Groo The Wanderer #3 (Epic))