public abstract class Template
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.lang.String |
name |
java.lang.String |
source |
Constructor and Description |
---|
Template() |
Modifier and Type | Method and Description |
---|---|
abstract void |
compile() |
java.lang.String |
getName() |
protected abstract java.lang.String |
internalRender(java.util.Map<java.lang.String,java.lang.Object> args)
The internal rendering method - When one template calls another template, this method is used.
|
java.lang.String |
render() |
java.lang.String |
render(java.util.Map<java.lang.String,java.lang.Object> args)
Starts the rendering process without modifying the args-map
|
public abstract void compile()
public java.lang.String render(java.util.Map<java.lang.String,java.lang.Object> args)
args
- map containing data binding infoprotected abstract java.lang.String internalRender(java.util.Map<java.lang.String,java.lang.Object> args)
args
- List of arguments use in renderpublic java.lang.String render()
public java.lang.String getName()
Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly