Class EscapeKeywordLambda
- java.lang.Object
-
- org.openapitools.codegen.templating.mustache.EscapeKeywordLambda
-
- All Implemented Interfaces:
com.samskivert.mustache.Mustache.Lambda
public class EscapeKeywordLambda extends Object implements com.samskivert.mustache.Mustache.Lambda
Converts text in a fragment to escape_keyword. Register:additionalProperties.put("escape_keyword", new EscapeKeywordLambda((val) -> this.escapeKeyword(val))));Use:{{#escape_keyword}}{{name}}{{/escape_keyword}}
-
-
Constructor Summary
Constructors Constructor Description EscapeKeywordLambda(UnaryOperator<String> callback)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(com.samskivert.mustache.Template.Fragment fragment, Writer writer)
-
-
-
Constructor Detail
-
EscapeKeywordLambda
public EscapeKeywordLambda(UnaryOperator<String> callback)
-
-
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
-
-