Setting up view

This commit is contained in:
Claude Brisson
2023-06-07 20:46:14 +02:00
parent b40250c639
commit f06d6c78d9
3 changed files with 14 additions and 1 deletions

View File

@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Pairgoth</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Pairgoth Go Paring Engine">
</head>
<body>
#translate($page)
</body>
</html>

View File

@@ -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) {

View File

@@ -0,0 +1 @@
Hello World!