[ 
https://issues.apache.org/jira/browse/SLING-6763?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15963103#comment-15963103
 ] 

Senol Tas commented on SLING-6763:
----------------------------------

Thanks Bertrand for the Feedback.

I bundled the sling-babel implementation with the code and extended the maven 
build script to automatically install node dependencies. also adapted the 
README as it is not required to do separate installation for the demo anymore.
to test it: 
update the readme test example from:
```var output  = "<h1>" + currentNode.properties.title + "</h1>";````
 to ```var output  = `<h1>${currentNode.properties.title}</h1>`;```
Which is the es6 template string, if this is getting rendered it is working.
as reference you can use: https://babeljs.io/learn-es2015/


> Remove org.apache.sling.commons.json dependency from esx engine
> ---------------------------------------------------------------
>
>                 Key: SLING-6763
>                 URL: https://issues.apache.org/jira/browse/SLING-6763
>             Project: Sling
>          Issue Type: Bug
>          Components: Scripting
>    Affects Versions: Apache Sling Scripting ESX 0.2.0
>            Reporter: Senol Tas
>            Assignee: Bertrand Delacretaz
>
> remove org.apache.sling.commons.json dependency from esx engine and replace 
> with native build in nashorn JSON parser
> + minor updates in the demo package to showcase the usage of dynamically 
> changing handlebars templates based on selector.
> + added experimental es6 transpiler as preperation for sandboxing the engine
> + updated demo with es6 classes and imports
> i created a pull request on github:
> https://github.com/apache/sling/pull/209



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to