Hi,

On Wednesday, April 18, 2012, Jakob Külzer wrote:

>In order to support, for example, mobile versions of components, i
> introduced the concept of a rendition. At the beginning of the request
> the template would determine the rendition and store it in the
> request. Then I added a custom component loader that would check if
> there was a rendition specific script...

You might create a filter that computes an additional selector that selects
your rendition, and stores that in the request attributes.

You can then include rendition scripts with the sling:include JSP tag (or
servlet equivalent), supplying that selector in the "addSelectors" option,
see http://markmail.org/message/zq3yz3dw3qvnby3r for example.

Sling will then select scripts/servlets that support this selector, if
present, and otherwise use the default rendition.

-Bertrand

Reply via email to