public class NowDataLoader extends java.lang.Object implements DataLoader
pp.sessionStart
or
pp.now
instead of this data loader.
The format of the directive is:
now(options)
, where options is a hash as:
{pattern:"yyyy-MM-dd HH:mm:ss"}
or
{date:short, time:long, zone:"GMT+0"}
.
Constructor and Description |
---|
NowDataLoader() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
load(Engine engine,
java.util.List args) |
public java.lang.Object load(Engine engine, java.util.List args) throws java.lang.Exception
load
in interface DataLoader
args
- Arguments that the caller specifies for this directive call.
Not null.
The implementation should check if it understands all arguments,
and it should throw java.lang.IllegalArgumentException
if it doesn't.freemarker.template.TemplateModel
, then it
will not be wrapped, as it is already an FTL variable.java.lang.Exception