David Vittor created JSPWIKI-860: ------------------------------------ Summary: Allow plugins to have html templates Key: JSPWIKI-860 URL: https://issues.apache.org/jira/browse/JSPWIKI-860 Project: JSPWiki Issue Type: New Feature Components: Core & storage, Plugins Affects Versions: 2.10.1 Reporter: David Vittor
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* {noformat} <?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> {noformat} 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); -- This message was sent by Atlassian JIRA (v6.2#6252)