public interface TemplateHashModelEx extends TemplateHashModel
TemplateHashModel
by allowing
iterating through its keys and values.
In templates they are used like hashes, but these will also work (among others):
myExtHash?size
, myExtHash?keys
, myExtHash?values
.
SimpleHash
NOTHING
Modifier and Type | Method and Description |
---|---|
TemplateCollectionModel |
keys() |
int |
size() |
TemplateCollectionModel |
values() |
get, isEmpty
int size() throws TemplateModelException
TemplateModelException
TemplateCollectionModel keys() throws TemplateModelException
TemplateScalarModel
(as the keys of hashes are always strings).TemplateModelException
TemplateCollectionModel values() throws TemplateModelException
TemplateModel
-s.TemplateModelException