---
title: "jetbrick-template 1.1.0 发布，支持 #tag, #macro, layout"
author: "subchen"
date: "2013-12-03T09:11:53Z"
tags: []
categories: ["企业架构"]
slug: "jetbrick-template-1-1-0-tag-macro-layout"
draft: false
lastmod: "2013-12-09T09:42:52Z"
id: 1984041
url: "https://subchen.iteye.com/blog/1984041"
---

全面超越 Velocity 的全新一代 Java 模板引擎 jetbrick-template 1.1.0 正式版发布。

新版支持自定义标签 #tag，宏定义 #macro，layout 等功能。

完善的中文在线文档：[http://subchen.github.io/jetbrick-template/](http://subchen.github.io/jetbrick-template/)

 

Version 1.1.0 (2013-12-02)

- \[新增] [#12 增加自定义 Tag 功能](https://github.com/subchen/jetbrick-template/issues/12)
- \[新增] [#13 增加 #macro 宏定义](https://github.com/subchen/jetbrick-template/issues/13)
- \[修复] [#14 如果运算符的操作数的返回值是 void, 那么就会出现编译错误](https://github.com/subchen/jetbrick-template/issues/14)
- \[新增] [#15 增加对类的静态字段和静态方法的直接访问](https://github.com/subchen/jetbrick-template/issues/15)
- \[新增] [#18 增加默认的 layout Tag 实现](https://github.com/subchen/jetbrick-template/issues/18)
- \[新增] [#19 与Nutz集成，实现JetTemplateView (Thanks wendal1985@gmail.com)](https://github.com/subchen/jetbrick-template/issues/19)
- \[修复] [#20 The column of error line is wrong when the line contains '\\t'](https://github.com/subchen/jetbrick-template/issues/20)
- \[修复] [#21 NumberUtils.format(123) should be "123.00"](https://github.com/subchen/jetbrick-template/issues/21)
- \[修复] [#22 对于 ${bean.property}，优先使用 getXXX()](https://github.com/subchen/jetbrick-template/issues/22)
- \[修复] [#23 Fixed request uri in JetTemplateServlet/JetTemplateFilter](https://github.com/subchen/jetbrick-template/issues/23)

jetbrick-template 是一个新一代 Java 模板引擎，具有高性能和高扩展性。 适合于动态 HTML 页面输出或者代码生成，可替代 JSP 页面或者 Velocity 等模板。 指令和 Velocity 相似，表达式和 Java 保持一致，易学易用。

- 支持类似与 Velocity 的多种指令
- 支持静态编译
- 支持编译缓存
- 支持热加载
- 支持类型推导
- 支持泛型
- 支持可变参数方法调用
- 支持方法重载
- 支持类似于 Groovy 的方法扩展
- 支持函数扩展
- 支持自定义标签 #tag
- 支持宏定义 #macro
- 支持布局 Layout