public class ResourceBundleLambda extends InputProcessingLambda implements MustacheEngineBuilder.EngineBuiltCallback
MustacheEngineBuilder.addGlobalData(String, Object)
.
{{#bundle}}key{{/bundle}}
ResourceBundle
,
ResourceBundleHelper
,
ResourceBundleResolver
Lambda.InputType
ONEOFF_LAMBDA_TEMPLATE_PREFIX
Constructor and Description |
---|
ResourceBundleLambda(String baseName) |
ResourceBundleLambda(String baseName,
LocaleSupport localeSupport) |
Modifier and Type | Method and Description |
---|---|
void |
engineBuilt(MustacheEngine engine) |
String |
invoke(String text) |
boolean |
isReturnValueInterpolated() |
getInputType
public ResourceBundleLambda(String baseName)
baseName
- public ResourceBundleLambda(String baseName, LocaleSupport localeSupport)
baseName
- localeSupport
- public String invoke(String text)
invoke
in interface Lambda
text
- The section contents (unprocessed or processed - depends on
the input type) in case of section tag, null
in
case of variable tagLambda.InputType
,
Lambda.isReturnValueInterpolated()
public boolean isReturnValueInterpolated()
isReturnValueInterpolated
in interface Lambda
true
if the return value should be parsed and
interpolated, false
otherwisepublic void engineBuilt(MustacheEngine engine)
engineBuilt
in interface MustacheEngineBuilder.EngineBuiltCallback
Copyright © 2017. All rights reserved.