Class OnChangeLambda
- java.lang.Object
-
- org.openapitools.codegen.templating.mustache.OnChangeLambda
-
- All Implemented Interfaces:
com.samskivert.mustache.Mustache.Lambda
public class OnChangeLambda extends Object implements com.samskivert.mustache.Mustache.Lambda
Lambda writes current fragment to the output when it is different than the previous fragment. Register:additionalProperties.put("onchange", new OnChangeLambda());
Use:{{#onchange}}{{name}}{{/onchange}}
-
-
Constructor Summary
Constructors Constructor Description OnChangeLambda()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(com.samskivert.mustache.Template.Fragment frag, Writer out)
-
-
-
Method Detail
-
execute
public void execute(com.samskivert.mustache.Template.Fragment frag, Writer out) throws IOException
- Specified by:
execute
in interfacecom.samskivert.mustache.Mustache.Lambda
- Throws:
IOException
-
-