public class TitlecaseLambda extends Object implements com.samskivert.mustache.Mustache.Lambda
additionalProperties.put("titlecase", new TitlecaseLambda());
Use:
{{#titlecase}}{{classname}}{{/titlecase}}
| 构造器和说明 |
|---|
TitlecaseLambda()
Constructs a new instance of
TitlecaseLambda, which will convert all text
in a space delimited string to title-case. |
TitlecaseLambda(String delimiter)
Constructs a new instance of
TitlecaseLambda, splitting on the specified
delimiter and converting each word to title-case. |
public TitlecaseLambda()
TitlecaseLambda, which will convert all text
in a space delimited string to title-case.public TitlecaseLambda(String delimiter)
TitlecaseLambda, splitting on the specified
delimiter and converting each word to title-case.
NOTE: passing null results in a title-casing the first word only.delimiter - Provided to allow an override for the default space delimiter.public void execute(com.samskivert.mustache.Template.Fragment fragment,
Writer writer)
throws IOException
execute 在接口中 com.samskivert.mustache.Mustache.LambdaIOExceptionCopyright © 2019. All rights reserved.