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() } } }