You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Julian Sedding (JIRA)" <ji...@apache.org> on 2014/08/22 12:21:12 UTC
[jira] [Created] (SLING-3874) JSP Tag for "partials"
Julian Sedding created SLING-3874:
-------------------------------------
Summary: 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
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)