You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jspwiki.apache.org by "David Vittor (JIRA)" <ji...@apache.org> on 2014/08/27 02:23:58 UTC

[jira] [Updated] (JSPWIKI-860) Allow plugins to have html templates

     [ https://issues.apache.org/jira/browse/JSPWIKI-860?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Vittor updated JSPWIKI-860:
---------------------------------

    Priority: Minor  (was: Major)

> Allow plugins to have html templates
> ------------------------------------
>
>                 Key: JSPWIKI-860
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-860
>             Project: JSPWiki
>          Issue Type: Wish
>          Components: Core & storage, Plugins
>            Reporter: David Vittor
>            Priority: Minor
>
> 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)