[
https://issues.apache.org/jira/browse/SLING-2919?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Vineet Kumar updated SLING-2919:
--------------------------------
Comment: was deleted
(was: I have been trying to use jknack with sling but it requires 2 version of
helpers in case my handlebars requires it. Using Nashorn on server-side, might
be I am able to port the same JS handlebars helpers to be able to execute on
server side and so avoiding duplication of effort as well as functionalities
mis-match.
I did look at sling-web-resource and found it using rhino which was part of JDK
till 1.7.)
> 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)