Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-428

[Javascript] allow Server-side inclusion of Javascript files

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3
    • Scripting
    • None

    Description

      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.

      Attachments

        1. SLING-428.patch
          6 kB
          Lars Trieloff

        Activity

          People

            bdelacretaz Bertrand Delacretaz
            lars3loff Lars Trieloff
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: