[Templates] Subroutines to set and return variables
Andrew Hardie
hardieas@yahoo.co.uk
Mon, 30 Sep 2002 13:03:20 +0100 (BST)
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 ash@cellar.demon.co.uk
--------------------------------------
__________________________________________________
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