Hey,

not sure who here is using pipes but my team, but you never know :-)
As part of replacing nashorn [0] for pipe expressions [1] i see following
approach, and here will be the place to shout out if you disagree.
I see default behaviour not to use any scripting engine, but commons text's
StringSubstitutor [2] with actual bindings. We lose logic ability in those
expressions, but in our teams it's not that much used.
Then optional behaviour would be to declare the script engine in the pipe's
configuration. So nashorn goes on working, but also other engines, like
groovy.

Nicolas

[0] https://issues.apache.org/jira/browse/SLING-7772
[1]
https://sling.apache.org/documentation/bundles/sling-pipes/bindings.html#configuration-expression-1
[2]
http://commons.apache.org/proper/commons-text/apidocs/org/apache/commons/text/StringSubstitutor.html

Reply via email to