Make Velocity files scale better for plugins

XMLWordPrintable

      NOTE: This suggestion is for JIRA Cloud. Using JIRA Server? See the corresponding suggestion.

      Story: plugin developers want to create plugins with lots of features. Most plugins use Velocity templates for their UI features.

      Problem: Velocity files in JIRA can use #parse and #macro to make them scale better. Plugins can't use #parse at all, and #macro only works within the same .vm file.
      This makes it hard for plugins to scale. Developing and debugging a large, monolithic .vm file is hard to get right.

      Idea: modify the DefaultVelocityManager so that when it is used by a plugin it changes the Velocity engine properties and adds the resources directory as a valid TEMPLATE_ROOT for finding macros and .vm files to include. Document this with a small reference plugin that shows how to use these Velocity features to improve your own plugin.

            Assignee:
            Unassigned
            Reporter:
            MattS
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: