OK, Newbie question ...

I am contructing HTML tables in TT, but the calculation for each table
row is complicated so, to keep code away from HTML, I want to use a
"subroutine" to be called for each table row and return variables for
each column value, which will keep the table template very clean.
Ideally, I would like the subroutine in a separate file, as I have
about a dozen templates that need to share the same row generating
code.

My question is, which is the right/best TT directive to use? I am
getting a bit confused between INCLUDE, PROCESS, MACRO, WRAPPER, etc.

TIA

A.


=====
--------------------------------------
Andrew Hardie, while away from home...
--------------------------------------
Mail sent using the Yahoo service, but
please reply to [EMAIL PROTECTED]
--------------------------------------

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://www.template-toolkit.org/mailman/listinfo/templates

Reply via email to