That's what the controller (in an MVC approach; the calling script otherwise) is for.
You use a template system because you want to separate program logic and layout - but database calls are surely not a layout technique.
In reply to Re: Methods in template toolkit
by moritz
in thread Methods in template toolkit
by dariusj
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |