Uploaded image for project: 'JSPWiki'
  1. JSPWiki
  2. JSPWIKI-860

Allow plugins to have html templates

    XMLWordPrintableJSON

    Details

    • Type: Wish
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Core & storage, Plugins
    • Labels:
      None

      Description

      I have another idea. This is an extension to JIRA issue JSPWIKI-859

      When building plugins we can currently specify the following in jspwiki_module.xml

      <?xml version="1.0" encoding="UTF-8"?>
      <modules>
         <plugin class="com.digitalspider.jspwiki.plugin.ImageGalleryPlugin">
            <author>David Vittor</author>
            <minVersion>2.10.1</minVersion>
            <script>/jssor/js/jssor.slider.min.js</script>
            <stylesheet>/jssor/css/jssor.slider.css</stylesheet>
            <alias>ImageGallery</alias>
         </plugin>
      </modules>
      

      I think we should add an extra parameter here called "<template>" that will provide access to a html template for the plugin to render.

      At the moment I'm thinking a "Freemarker" template engine, but am happy to other suggestions. It would allow users to change the HTML template without necessary changing the code in the plugin.

      Then in the plugin it would finish with:

      • return render(template, params);

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                dvittor David Vittor
              • Votes:
                1 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: