Menu

#90 The new <jt:set> tag is overly aggressive

1.0
open
None
2017-09-20
2017-09-20
Aron Gombas
No

My colleague try this in a template, and he tells me that if this tag is place in a cell, then after evaluating this, the content of the whole cell will be emptied.

This means that we cannot use this tag unless we can place it in a dedicated cell, which is used for nothing else. Or, if we want to assign values to N variables, then it requires N cells that cannot be used for anything else.

Therefore I suggest changing the behaviour: if the <jt:set> tag is evaluated, then it should be removed from the cell and the remaining part should be re-evaluated. (If there is a second , etc. then I guess it should repeated until there is nothing to evaluate.)

Discussion


Log in to post a comment.