public class CaseFormatLambda extends Object implements com.samskivert.mustache.Mustache.Lambda
additionalProperties.put("convert", new CaseFormatLambda(LOWER_CAMEL, UPPER_UNDERSCORE));
Use:
{{#convert}}{{name}}{{/convert}}
| Constructor and Description |
|---|
CaseFormatLambda(com.google.common.base.CaseFormat target,
com.google.common.base.CaseFormat targetFormat) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(com.samskivert.mustache.Template.Fragment fragment,
Writer writer) |
CaseFormatLambda |
generator(CodegenConfig generator) |
public CaseFormatLambda(com.google.common.base.CaseFormat target,
com.google.common.base.CaseFormat targetFormat)
public CaseFormatLambda generator(CodegenConfig generator)
public void execute(com.samskivert.mustache.Template.Fragment fragment,
Writer writer)
throws IOException
execute in interface com.samskivert.mustache.Mustache.LambdaIOExceptionCopyright © 2018. All rights reserved.