I assume that your real template is more complicated than that but if it isn't you could also do something simple like this:
[% a = 1 %] [% b = a + 1 # or "$a" + 1 %]
In reply to Re: Template Toolkit Embedded Perl
by Mr. Muskrat
in thread Template Toolkit Embedded Perl
by avo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |