Package org.nuxeo.ecm.webengine.model
Class Template
- java.lang.Object
-
- org.nuxeo.ecm.webengine.model.Template
-
- Direct Known Subclasses:
View
public class Template extends Object
- Author:
- Bogdan Stefanescu
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,Object>
args
protected WebContext
ctx
protected Resource
resource
protected ScriptFile
script
-
Constructor Summary
Constructors Modifier Constructor Description Template(Resource resource, String fileName)
Template(Resource resource, ScriptFile script)
Template(WebContext ctx, String fileName)
protected
Template(WebContext ctx, Resource resource, ScriptFile script)
Template(WebContext ctx, ScriptFile script)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Field Detail
-
resource
protected final Resource resource
-
script
protected ScriptFile script
-
ctx
protected WebContext ctx
-
-
Constructor Detail
-
Template
protected Template(WebContext ctx, Resource resource, ScriptFile script)
-
Template
public Template(WebContext ctx, String fileName)
-
Template
public Template(WebContext ctx, ScriptFile script)
-
Template
public Template(Resource resource, ScriptFile script)
-
-
Method Detail
-
resource
public Resource resource()
-
resolve
protected void resolve(String fileName)
-
script
public ScriptFile script()
-
render
public void render(OutputStream out)
-
render
public String render()
-
-