欢迎大家赞助一杯啤酒🍺 我们准备了下酒菜:Formal mathematics/Isabelle/ML, Formal verification/Coq/ACL2, C++/F#/Lisp
Ztemplates
来自开放百科 - 灰狐
您可以在Wikipedia上了解到此条目的英文信息 Ztemplates Thanks, Wikipedia. |
ztemplates is a easy to learn open source web framework based on Java jdk1.5 or later.
ztemplates supports Apache Velocity, JSP and FreeMarker out of the box and can easily be extended to your preferred rendering technology.
It has annotation based support for JavaScript libraries. The Ajax form support is based on the jQuery
Features
- based on annotations and autodiscovery
- no XML configuration
- statefree
- no constraints on the url format
- REST-ful urls: define variables in the url and map them to pojo properties
- robust refactoring-safe urls by two way pojo-to-url and url-to-pojo annotation based mapping
- annotation based AJAX and JavaScript support. Declare needed css, javascript in annotations.
- automatic javascript aggregation and compression (JSMin and gzip)
- selfcontained components. Components can be packaged into a jar and installed by dropping the jar into WEB-INF/lib
- flexible rendering engine supports major templating technologies like JSP, Velocity, FreeMarker
- ztemplates is a filter that passes through urls it cannot match so you can transparently add it to or remove it from your existing webapp.
ztemplates这是一个基于Java1.5的Web框架并使用反射, 注释和泛型来确保你可以基于POJO进行开发. 这意味着你不需要实现任何接口或继承特殊的class. 特点有:
- 不需要XML配置文件,除了Web.xml
- Type safety: 在需要的地方使用泛型(generics)
- Url safety: Url用Java编码创建而不是在模板中,所以你不可能创建坏掉的链接
- 灵活性: 支持不同的表现层引擎如,Velocity,JSP等
- 支持i18n,form校验(利用Ajax和http), 数据绑定
- 提供安全机制, 模板引擎
- 此外ztemplates还实现了一些可扩展的Web UI组件如tree和tabpane等
Links
分享您的观点