You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ol...@apache.org on 2015/04/19 22:31:42 UTC

svn commit: r1674687 - /sling/site/trunk/content/documentation/bundles/scripting/scripting-thymeleaf.mdtext

Author: olli
Date: Sun Apr 19 20:31:42 2015
New Revision: 1674687

URL: http://svn.apache.org/r1674687
Log:
add sample, style

Modified:
    sling/site/trunk/content/documentation/bundles/scripting/scripting-thymeleaf.mdtext

Modified: sling/site/trunk/content/documentation/bundles/scripting/scripting-thymeleaf.mdtext
URL: http://svn.apache.org/viewvc/sling/site/trunk/content/documentation/bundles/scripting/scripting-thymeleaf.mdtext?rev=1674687&r1=1674686&r2=1674687&view=diff
==============================================================================
--- sling/site/trunk/content/documentation/bundles/scripting/scripting-thymeleaf.mdtext (original)
+++ sling/site/trunk/content/documentation/bundles/scripting/scripting-thymeleaf.mdtext Sun Apr 19 20:31:42 2015
@@ -51,15 +51,18 @@ Sling Scripting Thymeleaf comes with its
 
 ## include
 
-The resource object or 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.
+The resource object ([`Resource`](http://sling.apache.org/apidocs/sling7/org/apache/sling/api/resource/Resource.html)) or the path (`String`) 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.
 
-* `data-sling-include` in HTML5, `sling:include` in XHTML (`Resource` or `String`)
-* supported options (* = [RequestDispatcher option](http://sling.apache.org/apidocs/sling7/org/apache/sling/api/request/RequestDispatcherOptions.html)):
-  * `addSelectors` (`String`) *: When dispatching, add the value provided by this option to the selectors.
-  * `replaceSelectors` (`String`) *: When dispatching, replace selectors by the value provided by this option.
-  * `replaceSuffix` (`String`) *: When dispatching, replace the suffix by the value provided by this option.
-  * `resourceType` (`String`) *: 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.
-  * `unwrap` (`Boolean`): removes the host element
+### supported options (* = [RequestDispatcher option](http://sling.apache.org/apidocs/sling7/org/apache/sling/api/request/RequestDispatcherOptions.html))
+
+* `addSelectors` (`String`) *: When dispatching, add the value provided by this option to the selectors.
+* `replaceSelectors` (`String`) *: When dispatching, replace selectors by the value provided by this option.
+* `replaceSuffix` (`String`) *: When dispatching, replace the suffix by the value provided by this option.
+* `resourceType` (`String`) *: 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.
+* `unwrap` (`Boolean`): removes the host element
+
+
+    <header data-sling-include="${resource}" resourceType="'/apps/example/page/header'" unwrap="true"/>
 
 # Sample