模板引擎推荐 [英] Template engine recommendations

查看:32
本文介绍了模板引擎推荐的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找模板引擎.要求:

I'm looking for a template engine. Requirements:

  • 在 JVM 上运行.Java 很好;Jython、JRuby 等也是......
  • 可以在 servlet 之外使用(与 JSP 不同)
  • 很灵活.到模板存储的位置(JSP 和很多人要求将模板存储在 FS 中).它应该提供一个可以实现的模板加载接口或类似的东西
  • 容易包含参数化模板 - 我真的很喜欢 JSP 的标签片段
  • 好的文档、漂亮的代码等,常见的疑点

我看过 JSP——除了 servlet 和文件系统耦合之外,它几乎是完美的,Stringtemplate——我喜欢模板语法,但它在文件系统耦合上失败了,缺乏文档,模板组和东西令人困惑,GXP、TAL 等

I've looked at JSP- it's nearly perfect except for the servlet and filesystem coupling, Stringtemplate- I love the template syntax, but it fails on the filesystem coupling, the documentation is lacking and template groups and stuff are confusing, GXP, TAL, etc.

想法、想法?

推荐答案

如果我没记错的话,FreeMaker是体面的 - 假设是某种速度,下一代".

If my memory serves, FreeMaker is decent - Suppose to be some sort of "Velocity, the next generation".

这篇关于模板引擎推荐的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆