[ https://issues.apache.org/jira/browse/SLING-428?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12626954#comment-12626954 ]
Bertrand Delacretaz edited comment on SLING-428 at 7/2/13 9:11 AM: ------------------------------------------------------------------- Integration tests for the load() and print() functions added in http://svn.apache.org/r690209 and http://svn.apache.org/r690210 was (Author: bdelacretaz): Integration tests for the load() and print() functions added in revisions 690209 and 690210 > [Javascript] allow Server-side inclusion of Javascript files > ------------------------------------------------------------ > > Key: SLING-428 > URL: https://issues.apache.org/jira/browse/SLING-428 > Project: Sling > Issue Type: Improvement > Components: Scripting > Reporter: Lars Trieloff > Assignee: Bertrand Delacretaz > Fix For: 3 > > Attachments: SLING-428.patch > > > For the sake of modularizing server-side Javascript libraries, it is > advisable to have an inclusion mechanism. Javascript does not have an > standardized way of handling inclusions, so I propose to use the conventions > established by the Rhino Javascript Shell > (http://www.mozilla.org/rhino/shell.html) which is introducing a load() > function in the global scope, loading and evaluating a Javascript file in the > current scope. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira