| Class | Description |
|---|---|
| DateTimeFormatHelper |
This is an alternative to
DateTimeFormatResolver. |
| LocaleAwareValueHelper | |
| ResourceBundleHelper |
First register the helper instance:
MustacheEngineBuilder.newBuilder().registerHelper("msg", new ResourceBundleHelper("msg")).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 Formatter or MessageFormat:
{{msg "my.key" format="printf"}}
See also ResourceBundleHelper.Format for more info about formats. |
| Enum | Description |
|---|---|
| ResourceBundleHelper.Format |
Copyright © 2014. All Rights Reserved.