From: Eric R. <eb...@tc...> - 2004-04-05 18:00:31
|
On Apr 5, 2004, at 1:41 PM, Endre St=F8lsvik wrote: > > This is getting clearer - but why is "evaluate" there in the first=20 > place, > then? Macro is an iface, right? Why are there two methods, Because WM can also be used to only affect the Context. You can do=20 this: WebMacro wm =3D new WM(); Context ctx =3D wm.getContext(); Template t =3D wm.getTemplate("foobar.wm"); t.evaluate(ctx); Object foo =3D ctx.get("Foo"); And .write() was never called. Not by you, and not by the innards of=20 WM. > That=B4s what I expected - it then just falls back to "normal property > traversal" stuff, as with any Object put in the context, right? yep. eric |