We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 9 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(3)
你可以看看 Mustache。
You can take a look at Mustache.
另外 Histone 似乎同时适用于两者
:相同的主题是 此处
Also Histone seems to be for both
BTW: the same topic is here
我意识到这是一个老问题,但是您是否考虑过启动
javax.script.ScriptEngine
并在 Java 中运行相同的 JS 模板系统?这样你就可以选择你真正想要的模板系统,而不是根据实现它的语言而妥协。我怀疑 Java(Rhino/Nashorn)中的嵌入式 JS 的性能是否与本机 Java 实现一样好,但这取决于您的应用程序,这可能并不重要。I realize this is an old question, but have you considered firing up a
javax.script.ScriptEngine
and running the same JS templating system in Java as well? That way you can choose the template system you actually want rather than compromising based on what languages implement it. I doubt that embedded JS in Java (Rhino/Nashorn) will perform as a well as a native Java implementation, but depending on your application that might not matter.