From: Marc P. <ma...@an...> - 2005-03-11 19:08:09
|
Keats Kirsch wrote: > Continuing the conversation with myself ... > > Another interesting option would be to change the #eval directive to > work with Strings as well as Macros. (I would automatically convert the > String to a StringMacro). This would be a simple change. The only > downside is that it might make it a bit harder to catch some errors. > > Then you could simply say: > > #eval $content.Data using { "contextData": $someData } > > This is kind of cool. You could even do stuff like: > > #eval "Hello, $userName" using { "userName": $User.Name } That would be the cleanest of them all. #eval was the first thing I tried. However, is there a shortcut for #eval to make it pass in the caller's context, so you don't have to pass all the stuff in? I know, it's less safe... but we live in an imperfect world ;-) Cheers -- Marc Palmer - - - wj...@wa... Wangjammers, J2ME Developers ~ http://www.wangjammers.org/games/ Blog ~ http://www.jroller.com/page/Wangjammer5 |