File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
modules/openapi-generator-maven-plugin/src/main/java/org/openapitools/codegen/plugin Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -126,6 +126,12 @@ public class CodeGenMojo extends AbstractMojo {
126
126
@ Parameter (name = "templateDirectory" )
127
127
private File templateDirectory ;
128
128
129
+ /**
130
+ * The name of templating engine to use, "mustache" (default) or "handlebars" (beta)
131
+ */
132
+ @ Parameter (name = "engine" , defaultValue = "mustache" )
133
+ private String engine ;
134
+
129
135
/**
130
136
* Adds authorization headers when fetching the swagger definitions remotely. " Pass in a
131
137
* URL-encoded string of name:header with a comma separating multiple values
@@ -550,6 +556,10 @@ public void execute() throws MojoExecutionException {
550
556
configurator .setTemplateDir (templateDirectory .getAbsolutePath ());
551
557
}
552
558
559
+ if (null != engine ) {
560
+ configurator .setTemplatingEngineName (engine );
561
+ }
562
+
553
563
// Set generation options
554
564
if (null != generateApis && generateApis ) {
555
565
GeneratorProperties .setProperty (CodegenConstants .APIS , "" );
You can’t perform that action at this time.
0 commit comments