Class CopyLambda
- java.lang.Object
-
- org.openapitools.codegen.templating.mustache.CopyLambda
-
- All Implemented Interfaces:
com.samskivert.mustache.Mustache.Lambda
public class CopyLambda extends Object implements com.samskivert.mustache.Mustache.Lambda
Saves template text to be used later. Register:additionalProperties.put("copy", new CopyLambda());
Use:{{#copy}}{{name}}{{/copy}}
-
-
Field Summary
Fields Modifier and Type Field Description String
savedContent
-
Constructor Summary
Constructors Constructor Description CopyLambda()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(com.samskivert.mustache.Template.Fragment fragment, Writer writer)
-
-
-
Field Detail
-
savedContent
public String savedContent
-
-
Method Detail
-
execute
public void execute(com.samskivert.mustache.Template.Fragment fragment, Writer writer) throws IOException
- Specified by:
execute
in interfacecom.samskivert.mustache.Mustache.Lambda
- Throws:
IOException
-
-