[Templates] subtracting one
Thomas, Mark - BLS CTR
Thomas.Mark at bls.gov
Sat Jul 19 15:41:46 BST 2008
I get a parse error with [% series.year - 1 %]. According to the thread
at
http://www.mail-archive.com/templates@template-toolkit.org/msg05821.html
, it is because it is being interpreted as a negative 1 instead of an
operator.
What's the workaround? I've tried:
[% series.year - (1) %]
[% series.year + -1 %]
[% one = 1; series.year - one %]
all to no avail.
-- Mark.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.template-toolkit.org/pipermail/templates/attachments/20080719/f5cb94e1/attachment.htm
More information about the templates
mailing list