public class FormatHelper extends LocaleAwareValueHelper
The first param represents a format string and other params are arguments (referenced by the format specifiers).
{{fmt 'Hello %s!' 'me'}}
A custom Locale can be set via options hash with
OptionsHashKeys.LOCALE key.
{{fmt '%tA' now locale='en'}}
FormatterVALUE_TAG_TYPESHELPER_TAG_TYPESconfiguration| Constructor and Description |
|---|
FormatHelper() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(Options options)
Execute the helper.
|
protected int |
numberOfRequiredParameters() |
getCurrentLocale, getCurrentLocale, getLocale, getSupportedHashKeys, initallowedTagTypesgetRequiredHashKeys, numberOfRequiredHashEntries, validateappend, convertAndAppend, convertValue, isSection, isUnescapeVariable, isVariablecheckNotInitialized, initclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConfigurationKeys, initprotected int numberOfRequiredParameters()
numberOfRequiredParameters in class BasicHelperCopyright © 2017. All rights reserved.