I would like to suggest a new macro named %eval that would add some computations (data and numeric) in the templates. Specifically I'd like to be able to do something like
%date(%eval(%date + 1)) to get tomorrow's date to come up. This way I could have a quick template that says:
Your order was processed today and will ship on January 10th, 2009.
%eval would convert whatever is there into a number. Extend %date macro so that %date(a number) would produce a date again.
If there is already a way to do this, I would appreciate any advice on how. Thanks.
%date(%eval(%date + 1)) to get tomorrow's date to come up. This way I could have a quick template that says:
Your order was processed today and will ship on January 10th, 2009.
%eval would convert whatever is there into a number. Extend %date macro so that %date(a number) would produce a date again.
If there is already a way to do this, I would appreciate any advice on how. Thanks.