Package | Description |
---|---|
org.dromara.hutool.extra.template |
第三方模板引擎封装,提供统一的接口用于适配第三方模板引擎,提供:
TemplateEngine:模板引擎接口,用于不同引擎的实现。
|
org.dromara.hutool.extra.template.engine |
第三方模板引擎实现
|
org.dromara.hutool.extra.template.engine.beetl |
Beetl实现,模板引擎介绍见:http://ibeetl.com/
|
org.dromara.hutool.extra.template.engine.enjoy |
Jfinal家的Enjoy模板引擎实现,见:https://jfinal.com/doc/6-1
|
org.dromara.hutool.extra.template.engine.freemarker |
Freemarker实现
见:https://freemarker.apache.org/ |
org.dromara.hutool.extra.template.engine.jetbrick |
jetbrick-template实现,模板引擎介绍见:https://github.com/subchen/jetbrick-template-2x
|
org.dromara.hutool.extra.template.engine.jte |
jte实现
见:https://jte.gg/ |
org.dromara.hutool.extra.template.engine.pebble |
pebble template实现,模板引擎介绍见:https://github.com/PebbleTemplates/pebble
|
org.dromara.hutool.extra.template.engine.rythm |
Rythm实现,见:http://www.rythmengine.org/
|
org.dromara.hutool.extra.template.engine.thymeleaf |
Thymeleaf实现,见:https://www.thymeleaf.org/
|
org.dromara.hutool.extra.template.engine.velocity |
Velocity实现
见:http://velocity.apache.org/ |
org.dromara.hutool.extra.template.engine.wit |
Wit实现,见:http://zqq90.github.io/webit-script/
|
Modifier and Type | Method and Description |
---|---|
static TemplateEngine |
TemplateUtil.getEngine()
获取单例的模板引擎
|
Modifier and Type | Method and Description |
---|---|
Class<? extends TemplateEngine> |
TemplateConfig.getCustomEngine()
获取自定义引擎,null表示系统自动判断
|
Modifier and Type | Method and Description |
---|---|
TemplateConfig |
TemplateConfig.setCustomEngine(Class<? extends TemplateEngine> customEngine)
设置自定义引擎,null表示系统自动判断
|
Modifier and Type | Method and Description |
---|---|
static TemplateEngine |
TemplateEngineFactory.createEngine()
根据用户引入的模板引擎jar,自动创建对应的模板引擎对象
推荐创建的引擎单例使用,此方法每次调用会返回新的引擎 |
static TemplateEngine |
TemplateEngineFactory.createEngine(TemplateConfig config)
根据用户引入的模板引擎jar,自动创建对应的模板引擎对象
推荐创建的引擎单例使用,此方法每次调用会返回新的引擎 |
static TemplateEngine |
TemplateEngineFactory.getEngine()
根据用户引入的模板引擎jar,自动创建对应的模板引擎对象
获得的是单例的TemplateEngine |
TemplateEngine |
TemplateEngine.init(TemplateConfig config)
使用指定配置文件初始化模板引擎
|
Modifier and Type | Class and Description |
---|---|
class |
BeetlEngine
Beetl模板引擎封装
|
Modifier and Type | Method and Description |
---|---|
TemplateEngine |
BeetlEngine.init(TemplateConfig config) |
Modifier and Type | Class and Description |
---|---|
class |
EnjoyEngine
Enjoy库的引擎包装
|
Modifier and Type | Method and Description |
---|---|
TemplateEngine |
EnjoyEngine.init(TemplateConfig config) |
Modifier and Type | Class and Description |
---|---|
class |
FreemarkerEngine
FreeMarker模板引擎封装
见:https://freemarker.apache.org/ |
Modifier and Type | Method and Description |
---|---|
TemplateEngine |
FreemarkerEngine.init(TemplateConfig config) |
Modifier and Type | Class and Description |
---|---|
class |
JetbrickEngine
Jetbrick模板引擎封装
见:https://github.com/subchen/jetbrick-template-2x |
Modifier and Type | Method and Description |
---|---|
TemplateEngine |
JetbrickEngine.init(TemplateConfig config) |
Modifier and Type | Class and Description |
---|---|
class |
JteEngine
jte实现
见:https://jte.gg/ |
Modifier and Type | Method and Description |
---|---|
TemplateEngine |
JteEngine.init(TemplateConfig config) |
Modifier and Type | Class and Description |
---|---|
class |
PebbleTemplateEngine
Pebble(https://pebbletemplates.io/) 模板引擎
|
Modifier and Type | Method and Description |
---|---|
TemplateEngine |
PebbleTemplateEngine.init(TemplateConfig config) |
Modifier and Type | Class and Description |
---|---|
class |
RythmEngine
Rythm模板引擎
文档:http://rythmengine.org/doc/index |
Modifier and Type | Method and Description |
---|---|
TemplateEngine |
RythmEngine.init(TemplateConfig config) |
Modifier and Type | Class and Description |
---|---|
class |
ThymeleafEngine
Thymeleaf模板引擎实现
|
Modifier and Type | Method and Description |
---|---|
TemplateEngine |
ThymeleafEngine.init(TemplateConfig config) |
Modifier and Type | Class and Description |
---|---|
class |
VelocityEngine
Velocity模板引擎
见:http://velocity.apache.org |
Modifier and Type | Method and Description |
---|---|
TemplateEngine |
VelocityEngine.init(TemplateConfig config) |
Modifier and Type | Class and Description |
---|---|
class |
WitEngine
Wit(http://zqq90.github.io/webit-script/)模板引擎封装
|
Modifier and Type | Method and Description |
---|---|
TemplateEngine |
WitEngine.init(TemplateConfig config) |
Copyright © 2025. All rights reserved.