From 4b5de1c70a9ac07d35a5bfda22c79016579d3a52 Mon Sep 17 00:00:00 2001 From: "R. Tyler Croy" Date: Wed, 2 Sep 2015 05:49:28 -0700 Subject: [PATCH] Minor API changes between the last version of ratpack 0.9 and 0.9.19 --- src/ratpack/ratpack.groovy | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/ratpack/ratpack.groovy b/src/ratpack/ratpack.groovy index 52cb489..0a5d60b 100644 --- a/src/ratpack/ratpack.groovy +++ b/src/ratpack/ratpack.groovy @@ -15,9 +15,10 @@ ratpack { bindings { offtopic.Configuration.instance.loadDefaults() offtopic.curator.CuratorPool.prepare(Configuration.instance.zookeepers) - add new HandlebarsModule() - add new JacksonModule() + module HandlebarsModule + module JacksonModule } + handlers { get { render handlebarsTemplate('index.html') @@ -91,7 +92,7 @@ ratpack { } } - assets 'public' + fileSystem "public", { f -> f.files() } } }