public class TitlecaseLambda extends Object implements com.github.jknack.handlebars.Lambda
additionalProperties.put("titlecase", new TitlecaseLambda());
Use:
{{#titlecase}}{{classname}}{{/titlecase}}
| Constructor and Description |
|---|
TitlecaseLambda()
Constructs a new instance of
io.swagger.codegen.mustache.TitlecaseLambda, which will convert all text
in a space delimited string to title-case. |
TitlecaseLambda(String delimiter)
Constructs a new instance of
io.swagger.codegen.mustache.TitlecaseLambda, splitting on the specified
delimiter and converting each word to title-case. |
| Modifier and Type | Method and Description |
|---|---|
Object |
apply(Object o,
com.github.jknack.handlebars.Template template) |
public TitlecaseLambda()
io.swagger.codegen.mustache.TitlecaseLambda, which will convert all text
in a space delimited string to title-case.public TitlecaseLambda(String delimiter)
io.swagger.codegen.mustache.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 Object apply(Object o, com.github.jknack.handlebars.Template template) throws IOException
apply in interface com.github.jknack.handlebars.LambdaIOExceptionCopyright © 2022. All rights reserved.