-
My $0.02: This behavior seems to be inconsistent with Apache's velocity, where sets do not change local variables, but change the state within the context. I came across velocity2js because I'm looking for a templating system I can use across platforms (Java, JS, python via airspeed, etc) but this behavior would seem to interfere with that goal.
2009-03-07 17:03:39 UTC by kazoolist
-
tobias_r committed revision 35 to the velocity2js SVN repository, changing 2 files.
2007-06-05 06:52:11 UTC by tobias_r
-
tobias_r committed revision 34 to the velocity2js SVN repository, changing 2 files.
2007-06-05 06:52:05 UTC by tobias_r
-
#set ($id = '1')
will generate following js output:
var id = '1';
sometimes following output is needed:
var context.id = '1';
----------------------------------
Solution:
support for #set ($context.id = '1'), will be added.
2007-05-15 16:25:44 UTC by tobias_r
-
eg: reduce spaces.
2007-05-15 15:52:25 UTC by tobias_r
-
tobias_r committed revision 33 to the velocity2js SVN repository, changing 2 files.
2007-05-14 13:46:39 UTC by tobias_r
-
tobias_r committed revision 32 to the velocity2js SVN repository, changing 1 files.
2007-05-14 13:46:33 UTC by tobias_r
-
tobias_r committed revision 31 to the velocity2js SVN repository, changing 2 files.
2007-05-14 12:01:32 UTC by tobias_r
-
tobias_r committed revision 30 to the velocity2js SVN repository, changing 1 files.
2007-05-12 06:32:57 UTC by tobias_r
-
tobias_r committed revision 29 to the velocity2js SVN repository, changing 2 files.
2007-05-11 15:45:23 UTC by tobias_r