| Modifier and Type | Interface and Description |
|---|---|
interface |
ComputingCacheFactory
A factory for
ComputingCache instances. |
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultComputingCacheFactory
A default computing cache factory producing computing cache implementations
backed by
LoadingCache. |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractConfigurationAware
Abstract configuration aware component.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
IdentifierGenerator
An idenfitier (long value) generator.
|
| Modifier and Type | Class and Description |
|---|---|
class |
SequenceIdentifierGenerator
A default
IdentifierGenerator using a global sequence backed by an
AtomicLong. |
| Modifier and Type | Interface and Description |
|---|---|
interface |
KeySplitter
This component is responsible for splitting a variable key.
|
interface |
LiteralSupport
Allows to customize the way the helpers extract literals from params and hash
values.
|
interface |
MissingValueHandler
This component handles variable miss during interpolation of a
ValueSegment, aka variable tag. |
| Modifier and Type | Class and Description |
|---|---|
class |
BracketDotKeySplitter
Enables to use bracket notation and literals in
ValueSegment keys. |
class |
DefaultLiteralSupport
The default
LiteralSupport implementation. |
class |
DotKeySplitter
The default
KeySplitter implementation which follows the dot notation. |
class |
NoOpMissingValueHandler
By default a variable miss returns an empty string - i.e. no operation.
|
class |
ThrowingExceptionMissingValueHandler
Throws an exception when a variable miss occurs.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
MustacheListener
Receives notifications about
Mustache processing. |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractMustacheListener
Abstract no-op mustache listener.
|
class |
AbstractStatsCollector
It's possible to specify the time unit for measurements.
|
class |
EnhancedStatsCollector
Unlike
SimpleStatsCollector this listener is able to detect rendering
errors. |
class |
SimpleStatsCollector
A simple
MustacheListener collecting template rendering statistics. |
| Modifier and Type | Interface and Description |
|---|---|
interface |
LocaleSupport
Locale support.
|
| Modifier and Type | Class and Description |
|---|---|
class |
FixedLocaleSupport
Simple with implementation with the fixed
Locale instance. |
| Modifier and Type | Interface and Description |
|---|---|
interface |
TemplateLocator
Automatically locates the template contents for the given template
identifier.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractTemplateLocator |
class |
ClassPathTemplateLocator
Classpath template locator.
|
class |
FilePathTemplateLocator
Abstract file-based template locator.
|
class |
FileSystemTemplateLocator
Filesystem template locator.
|
class |
MapTemplateLocator
Template locator backed by a
Map. |
class |
PathTemplateLocator<T>
Represents a template locator where the template identifier is a path.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
EnhancedResolver
An enhanced resolver should be able to create a
EnhancedResolver.Hint for a
sucessfully resolved context object and name. |
interface |
Resolver
A value resolver.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractResolver
Abstract resolver.
|
class |
ArrayIndexResolver
Resolve index-based access to arrays.
|
class |
CombinedIndexResolver
A combined resolver which is able to resolve index-based access to lists and
arrays.
|
class |
DummyTransformResolver
Unlike
TransformResolver this resolver first returns a dummy context
object - unique marker - and then performs the transformation. |
class |
IndexResolver
Abstract index-based resolver.
|
class |
ListIndexResolver
Resolve index-based access to lists.
|
class |
MapCustomKeyResolver
Abstract resolver for maps with custom key types.
|
class |
MapResolver
|
class |
ReflectionResolver
Reflection-based resolver attempts to find a matching member on the context
object class and its superclasses.
|
class |
ThisResolver |
class |
TransformResolver
This resolver performs some kind of transformation when matched (e.g. formats
the given context object based on the given name).
|
| Modifier and Type | Class and Description |
|---|---|
class |
DateTimeFormatResolver
Basic date and time formatting resolver.
|
class |
LocaleAwareResolver |
class |
NumberFormatResolver
Basic number formatting resolver.
|
class |
ResourceBundleResolver
ResourceBundle resolver. |
| Modifier and Type | Interface and Description |
|---|---|
interface |
TextSupport
Text support.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
Helper
Handlebars-like helper.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractHelper |
class |
AsyncHelper
A simple helper whose content is rendered asynchronously.
|
class |
BasicSectionHelper |
class |
BasicValueHelper |
class |
BasicHelper
Basic validating helper.
|
class |
EachHelper
{{#each items}}
{{name}}
{{/each}}
It's possible to apply a function to each element. |
class |
EmbedHelper
Embed the template source.
|
class |
EqualsHelper
Renders a block if the first param does/doesn't equal to the
second param (by means of
Object.equals(Object)). |
class |
EvalHelper
Allows to build the key dynamically and evaluate it afterwards.
|
class |
ChooseHelper
This helper works similarly as the JSP c:choose tag.
|
static class |
ChooseHelper.OtherwiseHelper |
static class |
ChooseHelper.WhenHelper
The first param is the test condition.
|
class |
IfHelper
Renders a block if the param is not "falsy".
|
class |
IncludeHelper
Works similarly as partial tag except the name of the template to include may
be obtained dynamically.
|
class |
IsHelper
Renders the second param if the first param is not falsy, or (optionally,
i.e. if set) the third param.
|
class |
JoinHelper
This helper takes all the objects specified as the parameters and joins the
Object.toString() values together with the specified delimiter
(optional). |
class |
LogHelper
A simple log helper.
|
class |
NullCheckHelper
Renders a block if the param is/isn't null.
|
class |
NumberIsEvenHelper
{{isEven iterIndex "evenRow"}}
{{isEven iterIndex "evenRow" "oddRow"}}
{{#isEven iterIndex}}
... |
class |
NumberIsOddHelper
{{isOdd iterIndex "oddRow"}}
{{isOdd iterIndex "oddRow" "evenRow"}}
{{#isOdd iterIndex}}
... |
class |
NumberMatchingHelper
An abstract helper for matching
Number values. |
class |
NumericExpressionHelper
A simple numeric expression helper.
|
class |
SetHelper
Works similarly as
WithHelper except the current
HelperDefinition.getHash() map is pushed on the context stack. |
class |
SwitchHelper
This helper works similarly as the Java switch statement.
|
static class |
SwitchHelper.CaseHelper
The first param is the matching value.
|
static class |
SwitchHelper.DefaultHelper |
class |
UnlessHelper
Renders a block if the param is "falsy".
|
class |
WithHelper
Nested context.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractTimeFormatHelper<F,S>
An abstract time formatting helper.
|
class |
DateTimeFormatHelper
This is an alternative to
DateTimeFormatResolver. |
class |
LocaleAwareValueHelper
An abstract
Locale-aware helper. |
class |
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! |
Copyright © 2015. All rights reserved.