From: <Web...@St...> - 2005-04-12 08:03:41
|
On Fri, 1 Apr 2005, Keats Kirsch wrote: | I posted the new #eval directive last night, along with a couple of unit | tests for the new functionality. I'll try to update the Wiki page soon. | | In a nutshell, you can now use Strings containing WMScript, instead of | Templets or other Macros, with #eval. E.g., | | [#eval "\$a \$b" using { "a":"Foo", "b":"Bar" }] | | would expand to: | | [Foo Bar] | | If you leave off the "using" clause, the current context will be used, e.g., | | #set $a="Foo" | #set $b="Bar" | [#eval "\$a \$b"] | | would give the same result as above. What if I'd like a mix? I want the current context (copied), but I want to "override" this and this and this variable? I see this as an immediate useful feature. Regards, Endre, (PS: Dear developers: remember that there is also a possibility of a 2.1, 2.2 etc.. 2.0 won't -ever- come out, will it?!) |