On Jan 19, 2008 10:14 AM, Peter Svensson <[EMAIL PROTECTED]> wrote:

> ...If Sling support writing server-side scripts in Rhino, couldn't I just as
> well write a serve-side javascript which access internal Sling APIs, build
> the structure, and outputs the correct format?...

Sure - just name your script "json.js", put in in the right place
based on the sling:resourceType of the node that you're dumping, and
that should work if the GET request URL uses the .json extension.

There are no docs on this ATM, but the integration tests found under
http://svn.apache.org/repos/asf/incubator/sling/trunk/usling/usling-webapp/src/test
contain lots of examples.

-Bertrand

Reply via email to