On Feb 15, 2008 5:17 PM, David Nuescheler <[EMAIL PROTECTED]> wrote:
> hi guys,
>
> >   var node = resource.adaptTo(Packages.javax.jcr.Node)
>
> i personally think this sucks since it is going to be a
> cryptic part in the beginning of all my esp scripts...

You don't need this in ESP scripts, as those have wrappers which
effectively hide this adaptTo call: resource.node works and gives you
a ScriptableNode with convenience methods.

The above adaptTo call (or something similar) is currently required
for all scripting environments for which we did not create wrapper
classes: Velocity, FreeMarker, Ruby, etc.

-Bertrand

Reply via email to