What is the best way to increment and output a counter value?

Ideally, I'd like to do something like this:

   [% tabindex++ %]

But I can only get it to work by doing this:

  [% tabindex = tabindex + 1; tabindex %]

Is there a better way?  I poked around the docs and couldn't find one.

Thanks!
- Jim

_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to