Cross Java and Javascript Template Language?

痴心易碎 提交于 2019-11-30 09:31:07

Google Closure/Soy templates.

The Wikipedia Page for Web Templating Languages reveals another one: Casper.

Both these solutions don't use a common template file which is directly evaluated in JS or Java. The template must first be compiled into an intermediate JS before evaluation on the client. (For Closure, this is fairly easy to do with ant and an included SoyToJsSrcCompiler.jar command line tool. Not sure about with Casper.)

EDIT: Another possibility is Mustache, which does not require templates to be compiled.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!