You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@sling.apache.org by Felix Meschberger <fm...@gmail.com> on 2010/11/01 20:53:31 UTC

Re: Using sling.include()

Hi,

Am Samstag, den 30.10.2010, 12:58 -0500 schrieb Bruce Green: 
> Given the JSP example below what is the equivalent sling.include() statement
> in ESP? 

This would by

   sling.include(request.resource, "some/resource/type");

Regards
Felix

> 
> 
> 
> 
> <%@page session="false"%>
> 
> <%@taglib prefix="sling" uri="http://sling.apache.org/taglibs/sling/1.0"%>
> 
>  
> 
> <sling:defineObjects/>
> 
>  
> 
> <html>
> 
>         <body>
> 
>                 <sling:include resourceType="some/resource/type" />
> 
>  
> 
>                 <h1><%= currentNode.toString() %></h1>
> 
>         </body>
> 
> </html>
>