| Class | Description |
|---|---|
| AbstractTimeFormatHelper<F,S> |
An abstract time formatting helper.
|
| DateTimeFormatHelper |
This is an alternative to
DateTimeFormatResolver. |
| LocaleAwareValueHelper |
An abstract
Locale-aware helper. |
| ResourceBundleHelper |
First register the helper instance:
MustacheEngineBuilder.newBuilder().registerHelper("msg", new ResourceBundleHelper("messages")).build();
Than use the helper in the template:
{{msg "my.key"}}
The key need not be a string literal:
{{msg foo.key}}
You may also override the default baseName:
{{msg "my.key" baseName="messages"}}
And also use message parameters and Formatter or
MessageFormat:
hello.key=Hello %s! |
| TimeFormatHelper |
An alternative to
DateTimeFormatHelper which makes use of java.time
package in JDK 8 (JSR-310). |
| Enum | Description |
|---|---|
| ResourceBundleHelper.Format |
Copyright © 2017. All rights reserved.