Re: Sightly :: JavaScript Use-API :: what property to use instead of "granite.resource" to access the current resource in JS?

2015-10-17 Thread Vlad Bailescu
Hi Sandro, I started putting together some documentation at [2] but it's stil WIP. Vlad [2] - https://github.com/vladbailescu/sling-sightly-docs/blob/master/use-api.md On Sunday, October 18, 2015, Sandro Boehme wrote: > Hello, > > I would like to access the current resource in the Sightly Ja

Sightly :: JavaScript Use-API :: what property to use instead of "granite.resource" to access the current resource in JS?

2015-10-17 Thread Sandro Boehme
Hello, I would like to access the current resource in the Sightly JavaScript Use-API. The docu [1] says I should for example use "granite.resource.properties["title"];" to access the "title" property of the current resource. But of course "granite" is not available in Sling. This is why I'm w

Re: JavaScript in Sling

2015-10-17 Thread Sandro Boehme
Hi Justin, thanks for your quick feedback! It's good to know that I can use the JSR-233 API. I was wondering if JavaScript is available out of the box in other areas. But I guess it's mainly ESP's and the JavaScript Use-API of Sightly. Thanks, Sandro Am 13.10.15 um 22:50 schrieb Justin E