diff --git a/view-webapp/src/main/config/layouts/standard.html b/view-webapp/src/main/config/layouts/standard.html new file mode 100644 index 0000000..27ee025 --- /dev/null +++ b/view-webapp/src/main/config/layouts/standard.html @@ -0,0 +1,12 @@ + + + + + Pairgoth + + + + +#translate($page) + + \ No newline at end of file diff --git a/view-webapp/src/main/kotlin/org/jeudego/pairgoth/web/ViewServlet.kt b/view-webapp/src/main/kotlin/org/jeudego/pairgoth/web/ViewServlet.kt index 5a11e25..37d7606 100644 --- a/view-webapp/src/main/kotlin/org/jeudego/pairgoth/web/ViewServlet.kt +++ b/view-webapp/src/main/kotlin/org/jeudego/pairgoth/web/ViewServlet.kt @@ -41,7 +41,7 @@ class ViewServlet : VelocityViewServlet() { override fun fillContext(context: Context, request: HttpServletRequest) { super.fillContext(context, request) var uri = decodeURI(request) - context.put("page", uri) + context.put("page", "$uri.html") val base = uri.replaceFirst(".html$".toRegex(), "") val suffixes = Arrays.asList("js", "css") for (suffix in suffixes) { diff --git a/view-webapp/src/main/webapp/index.html b/view-webapp/src/main/webapp/index.html new file mode 100644 index 0000000..980a0d5 --- /dev/null +++ b/view-webapp/src/main/webapp/index.html @@ -0,0 +1 @@ +Hello World!