[Templates] Assign and print at the same time

Brad Bowman list@bereft.net
Tue, 18 Sep 2007 11:30:09 +1000


Is there a way to assign and display a calculation in one statement?

   [% SGET a = 1 + 2 # set "a" to 3 and display it %]

Currently I'm doing [% a = ...; a %] which is fine...

Brad

-- 
   There is a saying of the elders' that goes, "Step from under the eaves
   and you're a dead man. Leave the gate and the enemy is waiting." This
   is not a matter of being careful. It is to consider oneself as dead
   beforehand.                     -- Hagakure http://bereft.net/hagakure/