public class SetHelper extends BasicSectionHelper
WithHelper except the current
HelperDefinition.getHash() map is pushed on the context stack.
{{#set foo="hello"}}
{{foo}}
{{/set}}
{{#set foo="Hello" myName=person.name}}
{{foo}} {{myName}}!
{{/set}}
SECTION_TYPESHELPER_TAG_TYPESconfiguration| Constructor and Description |
|---|
SetHelper() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(Options options)
Execute the helper.
|
protected Set<String> |
getSupportedHashKeys() |
protected int |
numberOfRequiredHashEntries() |
protected int |
numberOfRequiredParameters() |
allowedTagTypesgetRequiredHashKeys, validateappend, convertAndAppend, convertValue, init, isSection, isUnescapeVariable, isVariablecheckNotInitialized, initclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConfigurationKeys, initpublic void execute(Options options)
Helperprotected int numberOfRequiredParameters()
numberOfRequiredParameters in class BasicHelperprotected int numberOfRequiredHashEntries()
numberOfRequiredHashEntries in class BasicHelperprotected Set<String> getSupportedHashKeys()
getSupportedHashKeys in class BasicHelper* to
allow any hash keysCopyright © 2017. All rights reserved.