Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-20151

Provide a placeholder templace for javascript code xobject

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Minor
    • None
    • 13.10.9
    • None
    • Unknown

    Description

      We usually always have the same structure for our javascript xobject, relaying on requirejs to inject the modules we need. So it would be handy to provide a template (maybe configurable) for all the javascript xobject code we create.
      E.g something like:

      'use strict';
      require(["jquery"], function ($) {
        // Put your code here
      });
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            surli Simon Urli
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: