[
https://issues.apache.org/jira/browse/SLING-3874?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Julian Sedding updated SLING-3874:
----------------------------------
Attachment: SLING-3874-jsedding.patch
Patch for discussion.
> JSP Tag for "partials"
> ----------------------
>
> Key: SLING-3874
> URL: https://issues.apache.org/jira/browse/SLING-3874
> Project: Sling
> Issue Type: New Feature
> Components: Scripting
> Affects Versions: Scripting JSP-Taglib 2.2.0
> Reporter: Julian Sedding
> Priority: Minor
> Attachments: SLING-3874-jsedding.patch
>
>
> As brought up in a discussion by [~gwalt], it is currently not possible to
> overlay JSP scripts that are included with the <sling:call/> tag using other
> scripting languages.
> In order to remedy this situation, I propose a <sling:partial/> tag. This
> allows including "partial" rendering scripts via selector(s). However, in
> contrast to <sling:include replaceSelectors="..."/>, the selectors in the
> request are not modified, i.e. the original selectorString is preserved.
> The tag can be used as follows:
> <sling:partial selectors="header"/>
> This is roughly equivalent to:
> <sling:call script="header.jsp"/>
> If desired, the tag can easily be extended to allow modifying the extension
> as well. This might be useful e.g. if a snippet of JSON data should be
> inlined in an HTML document.
> Please discuss the value of such an addition on
> http://markmail.org/thread/6qpmh6txvsx766sm
--
This message was sent by Atlassian JIRA
(v6.2#6252)