You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Oliver Lietz (JIRA)" <ji...@apache.org> on 2015/02/23 14:32:12 UTC

[jira] [Reopened] (SLING-4297) add a dialect and processors to provide out-of-the-box support for a Sling Include

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

Oliver Lietz reopened SLING-4297:
---------------------------------

improve include, drop resource and path attributes

> add a dialect and processors to provide out-of-the-box support for a Sling Include
> ----------------------------------------------------------------------------------
>
>                 Key: SLING-4297
>                 URL: https://issues.apache.org/jira/browse/SLING-4297
>             Project: Sling
>          Issue Type: New Feature
>          Components: Scripting
>            Reporter: Oliver Lietz
>            Assignee: Oliver Lietz
>             Fix For: Scripting Thymeleaf 0.0.6
>
>
> http://sling.apache.org/documentation/bundles/sling-scripting-jsp-taglib.html
> {quote}
> include
> Includes a resource rendering into the current page.
> Attributes
> * flush - Whether to flush the output before including the target.
> * resource - The resource object to include in the current request processing. Either resource or path must be specified. If both are specified, the resource takes precedences.
> * path - The path to the resource object to include in the current request processing. If this path is relative it is appended to the path of the current resource whose script is including the given resource. Either resource or path must be specified. If both are specified, the resource takes precedences.
> * resourceType - The resource type of a resource to include. If the resource to be included is specified with the path attribute, which cannot be resolved to a resource, the tag may create a synthetic resource object out of the path and this resource type. If the resource type is set the path must be the exact path to a resource object. That is, adding parameters, selectors and extensions to the path is not supported if the resource type is set.
> * replaceSelectors - When dispatching, replace selectors by the value provided by this option.
> * addSelectors - When dispatching, add the value provided by this option to the selectors.
> * replaceSuffix - When dispatching, replace the suffix by the value provided by this option.
> * scope - If var is specified, what scope to store the variable in. (Since 1.3)
> * var - ariable name to store the resulting markup into (Since 1.3)
> {quote}
> * _flush_, _scope_ and _var_ are not supported
> * _unwrap_ to remove host tag is supported



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)