public class CaseFormatLambda extends Object implements com.samskivert.mustache.Mustache.Lambda
additionalProperties.put("convert", new CaseFormatLambda(LOWER_CAMEL, UPPER_UNDERSCORE));
Use:
{{#convert}}{{name}}{{/convert}}
| 构造器和说明 |
|---|
CaseFormatLambda(com.google.common.base.CaseFormat target,
com.google.common.base.CaseFormat targetFormat) |
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 在接口中 com.samskivert.mustache.Mustache.LambdaIOExceptionCopyright © 2019. All rights reserved.