THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Sling has an answer. The addSelectors parameter in <sling:include /> tag.
Imagine you have a script selector.jsp which needs to be included in the current html.jsp file.
Then you can use the tag as follows,
<sling:include addSelectors="selector" />
this will include the selector.jsp in the html.jsp file.
...
References:
For more information on other scripting variables look at Common scripting variables page.