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