jknack / handlebars.java

Logic-less and semantic Mustache templates with Java
http://jknack.github.io/handlebars.java
Other
1.47k stars 383 forks source link

No longer working on Android #674

Open gsechan opened 5 years ago

gsechan commented 5 years ago

You may know this and are ok with this, but I have an Android app that was using this library. As of 4.1.0, it no longer can- Android does not include Nashorn, and never will (for a variety of legal and technical issues). As such 4.0.7 was terminal for the platform. Allowing a choice of javascript engines would have been a nicer solution.

jknack commented 5 years ago

yea... also means we need to support multiples buggy/uncomplete implementations of JavaScript engines

too much effort

gsechan commented 5 years ago

You have every right to make that choice- but it would be nice if you had communicated as such to your users. We would have moved off your technology a year ago. In fact it would have been nice to know that it wasn't a real reimplementation in Java and was a wrapper around a javascript engine as well- this type of solution is okayish for a server, but completely unsuitable for a mobile environment. Stubbing out our calls to the templating engine with string replace saved 25% of the memory usage of the app. If the entire library isn't in Java, don't call yourself Handlebars.java- you're a wrapper around a scripting engine.