Class TrimLambda
- java.lang.Object
-
- org.openapitools.codegen.templating.mustache.TrimLambda
-
- All Implemented Interfaces:
com.samskivert.mustache.Mustache.Lambda
public class TrimLambda extends Object implements com.samskivert.mustache.Mustache.Lambda
Remove leading and trailing spacesRegister:
additionalProperties.put("trim", new TrimLambda());Use:
{{#trim}}{{name}}{{/trim}}
-
-
Constructor Summary
Constructors Constructor Description TrimLambda()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(com.samskivert.mustache.Template.Fragment fragment, Writer writer)
-
-
-
Method Detail
-
execute
public void execute(com.samskivert.mustache.Template.Fragment fragment, Writer writer) throws IOException- Specified by:
executein interfacecom.samskivert.mustache.Mustache.Lambda- Throws:
IOException
-
-