[
https://issues.apache.org/jira/browse/SLING-2919?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14642965#comment-14642965
]
Bob Paulin commented on SLING-2919:
-----------------------------------
I haven't seen a handlebars implementation on Nashorn yet as handlebars.java is
still using Rhino. Sling handlebars could probably be adapted to check the
Java version for 8 and fall back. Do you have a specific usecase?
> Support handlebars as a scripting language
> ------------------------------------------
>
> Key: SLING-2919
> URL: https://issues.apache.org/jira/browse/SLING-2919
> Project: Sling
> Issue Type: New Feature
> Components: Scripting
> Reporter: Ian Boston
> Assignee: Ian Boston
>
> Handlebars.js is a popular scripting language used client side. The markup is
> simple and straightforward, much like velocity in some ways, but without any
> of the confusion ove template or MVC. There is a version of Handlebars for
> java that uses an identical template language and appears to be well
> supported and has some nice features such as pre-compiling scripts serverside
> into Javascript functions and modules. (not all that relevant for server side
> scripting, but interesting none the less).
> I am going to experiment with a Sling Script engine in the whiteboard area to
> see if its viable to use handlebars java as an alternative to JSP.
> Handlebars Java, A2 Liencesed: https://github.com/jknack/handlebars.java
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)