FWIW, there are lots of calls to resource.adaptTo(ValueMap) in rendering
code.

Cheers,
Jeff.


On 14/03/2014 10:19, "Bertrand Delacretaz" <bdelacre...@apache.org> wrote:

>On Fri, Mar 14, 2014 at 11:03 AM, Carsten Ziegeler <cziege...@apache.org>
>wrote:
>> ...Just for rendering code, it is quiet handy to have deep reads - and
>> rendering code is using ResourceUtil.getValueMap()...
>
>Why would rendering code use this over Resource.adaptTo? Sling makes
>the current resource available to scripts, so AFAIK there's no
>incentive to use ResourceUtil more than adaptTo - but maybe I'm
>missing something.
>
>I'm not opposed to changing just ResourceUtil.getValueMap() to provide
>"deep" value maps, just trying to understand the reasoning behind it.
>
>-Bertrand

Reply via email to