Thank you for your reply, Rafael
> [...]
> If the dates are not known until the template is run, then something
> like:
Indeed, dates are often created in the view ("give me records older than
'yesterday'" etc...)
> $$vars{"getdate"}=sub {function with 3 parms, returning a DateTime
> object};
> and then, in your template:
> [% mydate = getdate(2003,07,02) %]
>
> Is there something flawed about this approach?
Typically, such a plugin is used in 60% of templates, I wish I could
avoid the hassle of passing one sub(or 2,3,...) to 'process' 60% of the time
I think it's what plugins are for.
Yann
_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates