[ 
https://issues.apache.org/jira/browse/SLING-192?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Bertrand Delacretaz resolved SLING-192.
---------------------------------------

    Resolution: Fixed

scripting/jst module added in revision 636395, adapted from the microsling code.

There are no tests at the moment, but this example script works:

<h1>currentNode test</h1>
<div>
This is html.jst, path=<%= currentNode.title %>.
</div>

<div>
<h1>ujax test</h1>
root resource type=
<b><% out.write(ujax.getContent("/")["sling:resourceType"]); %></b>.
</div>

The same script would work as an ESP script, except for ujax.getContent() which 
is client-side specific.

> JST script engine
> -----------------
>
>                 Key: SLING-192
>                 URL: https://issues.apache.org/jira/browse/SLING-192
>             Project: Sling
>          Issue Type: Improvement
>          Components: Scripting
>            Reporter: Bertrand Delacretaz
>            Assignee: Bertrand Delacretaz
>            Priority: Minor
>
> The microsling-core JST script engine should be ported to sling/scripting

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to