diff --git a/modules/jooby-jte/src/main/java/io/jooby/jte/JteTemplateEngine.java b/modules/jooby-jte/src/main/java/io/jooby/jte/JteTemplateEngine.java index 33a5694d56..1247187f45 100644 --- a/modules/jooby-jte/src/main/java/io/jooby/jte/JteTemplateEngine.java +++ b/modules/jooby-jte/src/main/java/io/jooby/jte/JteTemplateEngine.java @@ -16,7 +16,7 @@ import io.jooby.ModelAndView; class JteTemplateEngine implements io.jooby.TemplateEngine { - private TemplateEngine jte; + private final TemplateEngine jte; private final List extensions; public JteTemplateEngine(TemplateEngine jte) { @@ -39,7 +39,7 @@ public String render(Context ctx, ModelAndView modelAndView) { } else { model = new HashMap<>(); model.putAll(attributes); - model.putAll(model); + model.putAll(modelAndView.getModel()); } jte.render(modelAndView.getView(), model, output); return output.toString();