public class ELHelper extends BasicHelper
Object.toString() of the first parameter. If the helper
represents a section and the value is not null the value is pushed on the
context stack and the section is rendered. If the helper represents a
variable and the value is null, the current MissingValueHandler is
used. If the helper represents a variable and the final value is not null the
the value's Object.toString() is rendered.
{{el 'item.active ? "active" : "inactive"'}}
{{#el "item1.price > item2.price ? item1 : item2'}}
Name of item with higher price: {{name}}
{{/el}}
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_NAME |
HELPER_TAG_TYPESconfiguration| Constructor and Description |
|---|
ELHelper() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(Options options) |
allowedTagTypes, getRequiredHashKeys, getSupportedHashKeys, numberOfRequiredHashEntries, numberOfRequiredParameters, validateappend, convertAndAppend, convertValue, init, isSection, isUnescapeVariable, isVariablecheckNotInitialized, initclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConfigurationKeys, initpublic static final String DEFAULT_NAME
public void execute(Options options)
Copyright © 2016. All rights reserved.