On Tue, 2006-07-18 at 18:02 +0100, Gavin Henry wrote:
> What's the proper way ;-)

Picking a random one before running the template and passing it in.
(You did ask...)

However, if you just make a sub that does what you want with the list
ref, you can pass a reference to it to TT in the stash and run it:

[ % my_rand_func(tips) %]

- Perrin


_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to