paularmstrong/swig — Issue #52: A way to increment and decrement swig variables
Author: imbcmdth
Created: 2012-02-16 17:48:31+00:00
State: open

Maybe I am just missing something but I think it would be quite useful to have a way to increment a numeric variable inside of a swig template. If allowing {% set variable++ %} or {% set variable += 2 %} isn't easily doable, then perhaps we can get *inc* and *dec* tags?

This isn't a very high priority, obviously, but it would make template variables just a bit more useful.