全面超越 Velocity 的全新一代 Java 模板引擎 jetbrick-template 1.2.3 正式版发布。
jetbrick-template 是一个新一代 Java 模板引擎,具有高性能和高扩展性。 适合于动态 HTML 页面输出或者代码生成,可替代 JSP 页面或者 Velocity 等模板。 指令和 Velocity 相似,表达式和 Java 保持一致,易学易用。
- 支持类似与 Velocity 的多种指令
- 支持静态编译
- 支持编译缓存
- 支持热加载
- 支持类型推导
- 支持泛型
- 支持可变参数方法调用
- 支持方法重载
- 支持类似于 Groovy 的方法扩展
- 支持函数扩展
- 支持自定义标签 #tag
- 支持宏定义 #macro
- 支持布局 Layout
项目地址:http://subchen.github.io/jetbrick-template/index.html
在线中文文档:http://subchen.github.io/jetbrick-template/
范例参考:https://github.com/subchen/jetbrick-template-webmvc-samples/
1. 新增 JDT (Eclipse Java Compiler)
# 使用 JDK Compiler (默认值) compile.tool = jetbrick.template.compiler.JdkCompiler # 使用 Eclipse Java Compiler compile.tool = jetbrick.template.compiler.JdtCompiler
2. 新增自定义全局变量支持
// 配置 global.variables = sample.GlobalVariables // 实现 public class GlobalVariables implements JetGlobalVariables { @Override public Object get(JetContext context, String name) { if ("copyright".equals(name)) { return "copyright@2000-2010"; } else if ("today".equals(name)) { return new Date(); } else if ("contextPath".equals(name)) { HttpServletRequest request = (HttpServletRequest) context.get(JetWebConfig.REQUEST); return request.getContextPath(); } return null; } } // 使用 ${copyright} ${today.format("yyyy-MM-dd")} ${contextPath}
3. 完善支持下面的服务器
- Tomcat
- Jetty
- Resin
- JBoss/Wildfly
- Weblogic
- Glassfish
相关推荐
logback-classic-1.2.3.jar
赠送原API文档:logback-classic-1.2.3-javadoc.jar; 赠送源代码:logback-classic-1.2.3-sources.jar; 赠送Maven依赖信息文件:logback-classic-1.2.3.pom; 包含翻译后的API文档:logback-classic-1.2.3-javadoc...
1.安装python和mysql 这里就不多介绍了,很简单 2.安装setuptools ...3.下载编译版本 MySQL-python-1.2.3.win-amd64-py2.7.exe 双击安装 4.可以测试了 5.如果出错了,注意看下提示什么错误 直接解压就可以了~
Mybatis-spring 1.2.3 Released! 18 Jun 2015 Mybatis team is pleased to announce the release of mybatis-spring 1.2.3. This is generally a micro release with bug fixes over prior release.
赠送原API文档:logback-classic-1.2.3-javadoc.jar; 赠送源代码:logback-classic-1.2.3-sources.jar; 包含翻译后的API文档:logback-classic-1.2.3-javadoc-API文档-中文(简体)-英语-对照版.zip 对应Maven信息...
赠送原API文档:shiro-cas-1.2.3-javadoc.jar; 赠送源代码:shiro-cas-1.2.3-sources.jar; 赠送Maven依赖信息文件:shiro-cas-1.2.3.pom; 包含翻译后的API文档:shiro-cas-1.2.3-javadoc-API文档-中文(简体)版....
mybatis-spring-1.2.3.整合用的jar包 jarmybatis-spring-1.2.3.jarmybatis-spring-1.2.3.jarmybatis-spring-1.2.3.jarmybatis-spring-1.2.3.jar
xdoclet-bin-1.2.1.zip和xdoclet-bin-1.2.3.zip
赠送原API文档:shiro-cas-1.2.3-javadoc.jar; 赠送源代码:shiro-cas-1.2.3-sources.jar; 赠送Maven依赖信息文件:shiro-cas-1.2.3.pom; 包含翻译后的API文档:shiro-cas-1.2.3-javadoc-API文档-中文(简体)-英语...
MySQL-python-1.2.3
赠送原API文档:logback-core-1.2.3-javadoc.jar; 赠送源代码:logback-core-1.2.3-sources.jar; 包含翻译后的API文档:logback-core-1.2.3-javadoc-API文档-中文(简体)-英语-对照版.zip 对应Maven信息:groupId...
MySQL-python-1.2.3-0.3.c1.1.el6.x86_64的rpm包,供下载
MySQL-python-1.2.3.win32-py2.7.exe MySQL-python-1.2.3.win-amd64-py2.7.exe
VE(3): VE-Automated-Tests-1.2.3_jem.zip VE(4): VE-examples-1.2.3_jem.zip VE(5):VE-runtime-1.2.3_jem.zip ve(6):VE-SDK-1.2.3_jem(2).zip 若要完成可视化插件安装,需要解压以上6个文件解压,采用...
MySQL-python-1.2.3.win32-py2.7.msi
apache权限框架的缓存管理器要用到的jar包 shiro-all-1.2.3.jar
zlib-devel-1.2.3-104.231.x86_64
mybatis整合spring框架mybatis-spring-1.2.3.zip
zlib-devel-1.2.3-3.x86_64.rpm
Jquery-Easyui-1.2.3以及帮助文档