public class FreemarkerTemplate extends AbstractTemplate implements Serializable
Constructor and Description |
---|
FreemarkerTemplate(freemarker.template.Template freemarkerTemplate)
构造
|
Modifier and Type | Method and Description |
---|---|
void |
render(Map<?,?> bindingMap,
OutputStream out)
将模板与绑定参数融合后输出到流
|
void |
render(Map<?,?> bindingMap,
Writer writer)
将模板与绑定参数融合后输出到Writer
|
static FreemarkerTemplate |
wrap(freemarker.template.Template beetlTemplate)
包装Freemarker模板
|
render, render
public FreemarkerTemplate(freemarker.template.Template freemarkerTemplate)
freemarkerTemplate
- Beetl的模板对象 Template
public static FreemarkerTemplate wrap(freemarker.template.Template beetlTemplate)
beetlTemplate
- Beetl的模板对象 Template
public void render(Map<?,?> bindingMap, Writer writer)
Template
public void render(Map<?,?> bindingMap, OutputStream out)
Template
Copyright © 2024. All rights reserved.