public class ModelIncludeDirective
extends java.lang.Object
implements freemarker.template.TemplateDirectiveModel
TemplateDirectiveModel which allows to recursively write a graph of
Writables, with each element using its own template. Elements are
imported into the parent template by using this directive like so:
<@includeModel object=myProperty/>.| Constructor and Description |
|---|
ModelIncludeDirective(freemarker.template.Configuration configuration) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(freemarker.core.Environment env,
java.util.Map params,
freemarker.template.TemplateModel[] loopVars,
freemarker.template.TemplateDirectiveBody body) |
public ModelIncludeDirective(freemarker.template.Configuration configuration)
public void execute(freemarker.core.Environment env,
java.util.Map params,
freemarker.template.TemplateModel[] loopVars,
freemarker.template.TemplateDirectiveBody body)
throws freemarker.template.TemplateException,
java.io.IOException
execute in interface freemarker.template.TemplateDirectiveModelfreemarker.template.TemplateExceptionjava.io.IOExceptionCopyright © 2012-2014. All Rights Reserved.