ReleaseCallbackContainer.EachHelper with the "each" name.EmbedHelper with the "embed" name.IncludeHelper with the "include" name.EqualsHelper with the "isEq" name.NumberIsEvenHelper with the "isEven"
name.EqualsHelper which tests inequality with the
"isNotEq" name.NullCheckHelper which tests "not null" with the
"isNotNull" name.NullCheckHelper with the
"isNull" name.NumberIsOddHelper with the "isOdd" name.Mustache listener.Mustache listener.UnlessHelper with the "unless" name.WithHelper with the "with" name.ValueSegment keys.ExecutionContextBuilder.build(MustacheEngine, Object, boolean) instead.EngineConfigurationKey.HANDLEBARS_SUPPORT_ENABLED set to
true.HelpersBuilder should be used insteadMustache template was just compiled.Reader.DateTimeFormatResolver.KeySplitter implementation which follows the dot notation.TransformResolver this resolver first returns a dummy context
object - unique marker - and then performs the transformation.
{{#each items}}
{{name}}
{{/each}}
{{embed data.template}}
Object.equals(Object)).String, Boolean, Integer and
Long.HelperDefinition.ValuePlaceholder instances during validation.1.HelperDefinition.ValuePlaceholder instances during
validation.Class and Member instances.Object
MapResolver handles a mapper in a similar way to
Map.Map.ValueSegment, aka variable tag.MustacheEngine.Mustache processing.
{{isEven iterIndex "evenRow"}}
{{isEven iterIndex "evenRow" "oddRow"}}
{{#isEven iterIndex}}
...
{{isOdd iterIndex "oddRow"}}
{{isOdd iterIndex "oddRow" "evenRow"}}
{{#isOdd iterIndex}}
...Number values.Mustache is about to start.ReleaseCallback.release()
on each callback.ReleaseCallback container.Mustache is about to finish.Mustache is about to start.ExecutionContext.getValue(String) call and destroyed once the
template Segment which asks for a value is executed.
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!ResourceBundle resolver.LogHelper.Level.INFO is used.WithHelper except the current
HelperDefinition.getHash() map is pushed on the context stack.MustacheListener collecting template rendering statistics.StringBuilder instead of StringBuffer (unlike
StringWriter).Reader.Copyright © 2014. All Rights Reserved.