Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set mustache as default template engine for spring and scala generators. #191

Merged
merged 1 commit into from
Sep 30, 2018
Merged
Show file tree
Hide file tree
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 @@ -408,7 +408,7 @@ public Mustache.Compiler processCompiler(Mustache.Compiler compiler) {

@Override
public TemplateEngine getTemplateEngine() {
return new HandlebarTemplateEngine(this);
return this.templateEngine;
}

// override with any special text escaping logic
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -729,4 +729,10 @@ public void setUseBeanValidation(boolean useBeanValidation) {
public void setUseOptional(boolean useOptional) {
this.useOptional = useOptional;
}

// todo: remove this once handlebar templates for this generator are implemented
@Override
protected void setTemplateEngine() {
templateEngine = new MustacheTemplateEngine(this);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -249,4 +249,10 @@ protected String stripPackageName(String input) {
int lastIndexOfDot = input.lastIndexOf(".");
return input.substring(lastIndexOfDot + 1);
}

// todo: remove this once handlebar templates for this generator are implemented
@Override
protected void setTemplateEngine() {
templateEngine = new MustacheTemplateEngine(this);
}
}