public class Template extends Object
Modifier and Type | Field and Description |
---|---|
protected Map<String,Object> |
args |
protected WebContext |
ctx |
protected Resource |
resource |
protected ScriptFile |
script |
Modifier | Constructor and Description |
---|---|
|
Template(Resource resource,
ScriptFile script) |
|
Template(Resource resource,
String fileName) |
protected |
Template(WebContext ctx,
Resource resource,
ScriptFile script) |
|
Template(WebContext ctx,
ScriptFile script) |
|
Template(WebContext ctx,
String fileName) |
Modifier and Type | Method and Description |
---|---|
Template |
arg(String key,
Object value) |
Map<String,Object> |
args() |
Template |
args(Map<String,Object> args) |
String |
render() |
void |
render(OutputStream out) |
protected void |
resolve(String fileName) |
Resource |
resource() |
ScriptFile |
script() |
protected ScriptFile script
protected WebContext ctx
protected Template(WebContext ctx, Resource resource, ScriptFile script)
public Template(WebContext ctx, String fileName)
public Template(WebContext ctx, ScriptFile script)
public Template(Resource resource, ScriptFile script)
public ScriptFile script()
public void render(OutputStream out) throws WebException
WebException
Copyright © 2016 Nuxeo SA. All rights reserved.