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

Add support for evaluating WebJar resources that contain Velocity code

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.3-milestone-2
    • Fix Version/s: 6.3-rc-1
    • Component/s: Webjar
    • Labels:
      None
    • Tests:
      Unit
    • Difficulty:
      Medium
    • Similar issues:

      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: