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'}}
Formatter
VALUE_TAG_TYPES
HELPER_TAG_TYPES
configuration
Constructor and Description |
---|
FormatHelper() |
Modifier and Type | Method and Description |
---|---|
void |
execute(Options options)
Execute the helper.
|
protected int |
numberOfRequiredParameters() |
getCurrentLocale, getCurrentLocale, getLocale, getSupportedHashKeys, init
allowedTagTypes
getRequiredHashKeys, numberOfRequiredHashEntries, validate
append, convertAndAppend, convertValue, isSection, isUnescapeVariable, isVariable
checkNotInitialized, init
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConfigurationKeys, init
protected int numberOfRequiredParameters()
numberOfRequiredParameters
in class BasicHelper
Copyright © 2017. All rights reserved.