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

Add support for evaluating WebJar resources that contain Velocity code

    XMLWordPrintable

Details

    • New Feature
    • Resolution: Fixed
    • Major
    • 6.3-rc-1
    • 6.3-milestone-2
    • Webjar
    • None
    • Unit
    • Medium

    Description

      If your JavaScript/CSS files are on the file system inside the XWiki WAR

      /resources/uicomponents/dashboard/dashboard.css
      

      and they contain Velocity code then you can load them with

      $xwiki.ssfx.use('uicomponents/dashboard/dashboard.css', true)
      

      in order to evaluate the Velocity code. If you package the same files as a WebJar you cannot do this evaluation any more. We need something like this:

      $services.webjars.url('org.xwiki.platform:xwiki-platform-dashboard-webjar', 'dashboard.css', {'evaluate': true})
      

      Attachments

        Issue Links

          Activity

            People

              mflorea Marius Dumitru Florea
              mflorea Marius Dumitru Florea
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: