Hi,

Am Freitag, den 09.05.2008, 11:25 +0200 schrieb Carsten Ziegeler:
> Hi,
> 
> what do you think of adding another variable to the set of provided 
> variables for scripts: the script resource?
> 
> This can be usefull if your script needs additional resources that are 
> located "next to" the script.

Don't think that this is needed, because the SlingScriptHelper has a
method getScript() which returns the currently active SlingScript which
in turn has the script resource as getScriptResource(). So getting the
script resource - in java script - is as easy as:

   var scriptResource = sling.script.scriptResource;

Regards
Felix

Reply via email to