Skip to content

Commit f18b8fe

Browse files
tripodsanraducotescu
authored andcommitted
fix #64: Clarify difference between data-sly-include and data-sly-resource
* closes #65
1 parent e87e8a7 commit f18b8fe

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

SPECIFICATION.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1205,7 +1205,9 @@ When iterating over `Map` objects, the item variable contains the key of each ma
12051205
* **Attribute value:** required; the file to include.
12061206
* **Attribute identifier:** none.
12071207

1208-
Includes the output of a rendering script run with the current context, passing back control to the current HTL script.
1208+
Includes the output of a rendering script run with the current request context, passing back control to the current HTL script.
1209+
1210+
> Note: this is comparable to the JSP `<%@ include file="" %>`.
12091211
12101212
```html
12111213
<div data-sly-include="template.html"></div>
@@ -1243,7 +1245,9 @@ The scope of the `data-sly-include` statement isn't passed to the template of th
12431245
* **Attribute value:** required; the path to include.
12441246
* **Attribute identifier:** none.
12451247

1246-
Includes a rendered resource from the same server, using an absolute or relative path.
1248+
Includes a rendered resource from the same server, using an absolute or relative path. An implementation should create a new request context when retrieving the output.
1249+
1250+
> Note: this is comparable to a `<jsp:include page="" />`.
12471251
12481252
```html
12491253
<section data-sly-resource="./path"></section>

0 commit comments

Comments
 (0)