public class ModelIncludeDirective extends Object implements freemarker.template.TemplateDirectiveModel
TemplateDirectiveModel
which allows to recursively write a graph of
Writable
s, 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,
Map params,
freemarker.template.TemplateModel[] loopVars,
freemarker.template.TemplateDirectiveBody body) |
public ModelIncludeDirective(freemarker.template.Configuration configuration)
public void execute(freemarker.core.Environment env, Map params, freemarker.template.TemplateModel[] loopVars, freemarker.template.TemplateDirectiveBody body) throws freemarker.template.TemplateException, IOException
execute
in interface freemarker.template.TemplateDirectiveModel
freemarker.template.TemplateException
IOException
Copyright © 2012-2016 Gunnar Morling; All rights reserved. Released under the Apache Software License 2.0.