Class ManipulateTimeDirective
java.lang.Object
ch.tocco.nice2.templating.impl.freemarker.directives.ManipulateTimeDirective
- All Implemented Interfaces:
Nice2TemplateDirective
,freemarker.template.TemplateDirectiveModel
,freemarker.template.TemplateModel
Directive for
FreemarkerEngine
to add days to a date. Parameters available in template:
date
(required): date which will be increasedfield
(required): field of what should be done to the dateamount
(required): amount which will be added to datepattern
(optional): pattern for the outputname
(optional): new variable to save
-
Field Summary
Fields inherited from interface freemarker.template.TemplateModel
NOTHING
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
ManipulateTimeDirective
public ManipulateTimeDirective()
-
-
Method Details
-
execute
public void execute(freemarker.core.Environment env, Map params, freemarker.template.TemplateModel[] templateModels, freemarker.template.TemplateDirectiveBody templateDirectiveBody) throws freemarker.template.TemplateException, IOException - Specified by:
execute
in interfacefreemarker.template.TemplateDirectiveModel
- Throws:
freemarker.template.TemplateException
IOException
-