Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,12 @@ public class CodeGenMojo extends AbstractMojo {
@Parameter(name = "templateDirectory")
private File templateDirectory;

/**
* The name of templating engine to use, "mustache" (default) or "handlebars" (beta)
*/
@Parameter(name = "engine", defaultValue = "mustache")
private String engine;

/**
* Adds authorization headers when fetching the swagger definitions remotely. " Pass in a
* URL-encoded string of name:header with a comma separating multiple values
Expand Down Expand Up @@ -550,6 +556,10 @@ public void execute() throws MojoExecutionException {
configurator.setTemplateDir(templateDirectory.getAbsolutePath());
}

if (null != engine) {
configurator.setTemplatingEngineName(engine);
}

// Set generation options
if (null != generateApis && generateApis) {
GeneratorProperties.setProperty(CodegenConstants.APIS, "");
Expand Down