Vlad Bailescu created SLING-4546: ------------------------------------ Summary: Sightly: Improper handling of extension and selectors by data-sly-resource Key: SLING-4546 URL: https://issues.apache.org/jira/browse/SLING-4546 Project: Sling Issue Type: Bug Components: Scripting Reporter: Vlad Bailescu Fix For: Scripting Sightly Engine 1.0.2
Sightly is not handling extensions and selectors properly in {{data-sly-resource}}: 1. Selectors included in path or parent resource are ignored if no selector-related option is specified 2. Extensions are ignored completely, Sightly assumes anything preceded by a dot is a selector This leads to: * {{'resource.selector.html'}} being equivalent to {{'resource'}} instead of {{'resource.html' @ selectors=\['selector'\]}} * {{'resource.selector.html' @ addSelectors=\['other'\]}} being equivalent to {{'resource' @ selectors=\['selector', 'html', 'other'\]}} instead of {{'resource.html' @ selectors=\['selector', 'other'\]}} -- This message was sent by Atlassian JIRA (v6.3.4#6332)