[Templates] Order of evaluation

Andy Wardley abw@andywardley.com
Thu, 21 Nov 2002 12:39:43 +0000


Andrew Beattie wrote:
> I pass the stuff to TT with
> 
> $$vars{'columns'} = $columns;
> $$vars{'body'} = \&get_body;

Can you not call get_body() to populate the hash before calling TT?

$vars = {
   columns => $columns,
   body    => get_body(),
};


A