Skip to content

Commit

Permalink
Fix perf app
Browse files Browse the repository at this point in the history
  • Loading branch information
rhart committed Oct 9, 2014
1 parent d9242af commit c5c96fb
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions perf/src/apps/template-engine-groovy/src/ratpack/ratpack.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,14 @@ import static ratpack.thymeleaf.Template.thymeleafTemplate

ratpack {
bindings {
def t = new TemplatingModule()
t.staticallyCompile = true
add t
<% if (patch < 10) { %>
def t = new TemplatingModule()
t.staticallyCompile = true
add t
<% } else { %>
add(TemplatingModule) { TemplatingModule.Config config -> config.staticallyCompile = true }
<% } %>

add new HandlebarsModule()
add new ThymeleafModule()
add new MarkupTemplatingModule()
Expand Down

0 comments on commit c5c96fb

Please sign in to comment.