[jira] [Commented] (SLING-6763) Remove org.apache.sling.commons.json dependency from esx engine

2017-04-10 Thread Senol Tas (JIRA)

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

Senol Tas commented on SLING-6763:
--

+ any help writing test-cases is appreciated. a blueprint which i could take up 
from would be also cool :-)

> 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)


[jira] [Commented] (SLING-6763) Remove org.apache.sling.commons.json dependency from esx engine

2017-04-10 Thread Senol Tas (JIRA)

[ 
https://issues.apache.org/jira/browse/SLING-6763?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=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  = "" + currentNode.properties.title + "";
 to ```var output  = `${currentNode.properties.title}`;```
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)


[jira] [Updated] (SLING-6763) Remove org.apache.sling.commons.json depdency from esx engine

2017-04-05 Thread Senol Tas (JIRA)

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

Senol Tas updated SLING-6763:
-
Description: 
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

  was:
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.

i created a pull request on github:
https://github.com/apache/sling/pull/209


> Remove org.apache.sling.commons.json depdency 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
>
> 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)


[jira] [Created] (SLING-6763) Remove org.apache.sling.commons.json depdency from esx engine

2017-03-31 Thread Senol Tas (JIRA)
Senol Tas created SLING-6763:


 Summary: Remove org.apache.sling.commons.json depdency 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


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.

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)


[jira] [Created] (SLING-6680) contributing esx scripting engine

2017-03-22 Thread Senol Tas (JIRA)
Senol Tas created SLING-6680:


 Summary: contributing esx scripting engine
 Key: SLING-6680
 URL: https://issues.apache.org/jira/browse/SLING-6680
 Project: Sling
  Issue Type: New Feature
  Components: Scripting
Reporter: Senol Tas
Priority: Minor
 Attachments: esx.zip

I'd like to contribute a small scripting engine which is using a nodejs like 
module loading. 
This module implements a Nashorn Apache Sling Script Engine for the "esx" 
extension.
It requires a function named render in the esx script that processes the 
request.



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