public class JSTemplate extends Object
| Constructor and Description |
|---|
JSTemplate(String source,
ScriptEngine engine,
CompiledScript code,
List<JSLocationMapping> locMap) |
| Modifier and Type | Method and Description |
|---|---|
Object |
execute(Appendable a,
Map<String,Object> assignments)
Execute this template, and leave the result in the specified appendable.
|
Object |
execute(Appendable a,
Object... assignments)
Execute this template, and leave the result in the specified appendable.
|
Object |
execute(IJSTemplateContext tc,
Map<String,Object> assignments)
Execute this template.
|
Object |
execute(IJSTemplateContext tc,
Object... assignments)
Execute this template.
|
String |
getSource() |
public JSTemplate(String source, ScriptEngine engine, CompiledScript code, List<JSLocationMapping> locMap)
public final String getSource()
public Object execute(IJSTemplateContext tc, Object... assignments)
tc - assignments - public Object execute(IJSTemplateContext tc, Map<String,Object> assignments)
tc - assignments - public Object execute(Appendable a, Object... assignments)
a - assignments - public Object execute(Appendable a, Map<String,Object> assignments)
a - assignments - Copyright © 2017 etc.to. All rights reserved.