public interface ITemplateEngine
| Modifier and Type | Method and Description |
|---|---|
IContext |
getContext() |
IContext |
initializeContext()
Initialize context.
|
void |
merge(File file)
Merge.
|
void |
merge(String file)
Merge.
|
void |
merge(Writer writer)
Merge.
|
IContext |
newContext() |
void |
put(String key,
Object value)
Put a value for the given key.
|
void |
setDefaultFormat(Class clazz,
Format format)
Set the default format for a given class.
|
void |
setGlobalContext(IContext globalContext)
Use a pre-populated Context.
|
void |
setTemplate(Reader template)
Set the template to use
|
IContext initializeContext()
IContext getContext()
void setTemplate(Reader template)
template - the template.void put(String key, Object value)
key - the key.value - the value.void merge(String file) throws Exception
file - name of file to merge intoException - the exception.void merge(File file) throws Exception
file - file to merge intoException - the exception.void merge(Writer writer) throws Exception
writer - writer to merge intoException - the exception.IContext newContext()
void setGlobalContext(IContext globalContext)
globalContext - the globalContext.Copyright © 2020 Mice S.r.l. All rights reserved.