public class ThymeleafTemplate extends AbstractTemplate implements Serializable
Constructor and Description |
---|
ThymeleafTemplate(org.thymeleaf.TemplateEngine engine,
String template,
Charset charset)
构造
|
Modifier and Type | Method and Description |
---|---|
void |
render(Map<?,?> bindingMap,
OutputStream out)
将模板与绑定参数融合后输出到流
|
void |
render(Map<?,?> bindingMap,
Writer writer)
将模板与绑定参数融合后输出到Writer
|
static ThymeleafTemplate |
wrap(org.thymeleaf.TemplateEngine engine,
String template,
Charset charset)
包装Thymeleaf模板
|
render, render
public static ThymeleafTemplate wrap(org.thymeleaf.TemplateEngine engine, String template, Charset charset)
engine
- Thymeleaf的模板引擎对象 TemplateEngine
template
- 模板路径或模板内容charset
- 编码ThymeleafTemplate
public void render(Map<?,?> bindingMap, Writer writer)
Template
public void render(Map<?,?> bindingMap, OutputStream out)
Template
Copyright © 2024. All rights reserved.