[英]Is there a JSP like Java based Web template engine that can load page templates from persistent storage?
I would like to provide users to write plugins to my application, the initial design and implementaion involve a Velocity (VTL) template engine to allow 我想为用户提供向我的应用程序编写插件的方法,初始设计和实现涉及Velocity (VTL)模板引擎,以允许
Then with the limitations of VTL (no tag library support as first) we looked at Freemarker 然后,由于VTL的局限性 (首先不支持标签库),我们研究了Freemarker
It has all the advantages, but I wonder if this is as good as it gets 它具有所有优点,但是我想知道它是否还好
The other alternatives are eclipse JET, and I don't know of anything else at the moment 其他选择是Eclipse JET,目前我还不知道
I would like a solution that can have Java content assist (like JSP) but that can be saved in the database 我想要一个可以支持Java内容 (例如JSP)但可以保存在数据库中的解决方案
Is there something like this out there? 那里有这样的东西吗? (Besides JET, and JBoss's Freemarker buggy plugin)
(除了JET和JBoss的Freemarker越野车插件)
I have successfully used FreeMarker on several projects. 我已经在几个项目上成功使用了FreeMarker。
To address your concerns: 要解决您的问题:
As for content assist, most major IDE's (IntelliJ, Eclipse, probably NetBeans) have support for the FreeMarker syntax and should provide auto-completion for the keywords. 至于内容辅助,大多数主要的IDE(IntelliJ,Eclipse,可能是NetBeans)都支持FreeMarker语法,并应为关键字提供自动完成功能。 If you want a JavaScript-based editor for FreeMarker, I'm not as affirmative since I know of none.
如果您想要FreeMarker的基于JavaScript的编辑器,那么我就不那么肯定了,因为我什至没有。
Good luck! 祝好运!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.