data, HttpServletResponse resp) {
- var template = templates.getInstanceOf(path);
- if (template != null){
- try {
- template.add("data",data);
- resp.getWriter().println(template.render());
- return null;
- } catch (IOException e) {
- return t("Failed to load template '{}'",path);
- }
- }
- return t("No template for path '{}'!",path);
- }
- private void loadTemplates() {
- var templateDir = String.join(File.separator,baseDir,"static","templates");
- templates = new STRawGroupDir(templateDir,'«','»');
- }
+
private String redirectTo(String page, HttpServletResponse resp) {
try {
diff --git a/static/templates/frontpage.st b/static/templates/frontpage.st
new file mode 100644
index 0000000..2f7cbe6
--- /dev/null
+++ b/static/templates/frontpage.st
@@ -0,0 +1,40 @@
+
+
+
+
+
+
+
+ Widerhall front page
+ If you are looking for you mailing lists, Go to the /web page...
+
+
+
+
+
\ No newline at end of file