From 009dcdcc4a99a127df02a4bdd90131ed6ba43635 Mon Sep 17 00:00:00 2001 From: Dave Syer Date: Fri, 30 May 2014 10:41:40 +0100 Subject: [PATCH] Add templates and static dirs in webapp --- app.groovy | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app.groovy b/app.groovy index f2d1e3d5..6bc97c0c 100644 --- a/app.groovy +++ b/app.groovy @@ -144,6 +144,11 @@ class MainController { resources.mkdirs() new File(resources, 'application.properties').write('') + if (isWebStyle(request.style)) { + new File(dir, 'src/main/resources/templates').mkdirs() + new File(dir, 'src/main/resources/static').mkdirs() + } + tempFiles }