From 9266070e51422a71566ee5c04db42feec996c485 Mon Sep 17 00:00:00 2001 From: lns Date: Thu, 21 Oct 2021 14:52:26 +0200 Subject: Improved URI handling and redirection/routing. * parse and process URI query strings * remove garbage slashes from URI path / sanitize * more template examples Signed-off-by: lns --- wwwroot/blog/index.html | 27 +++++++++++++++++++++++++++ wwwroot/index.html | 27 ++------------------------- wwwroot/index.tmpl | 1 - 3 files changed, 29 insertions(+), 26 deletions(-) create mode 100644 wwwroot/blog/index.html delete mode 100644 wwwroot/index.tmpl (limited to 'wwwroot') diff --git a/wwwroot/blog/index.html b/wwwroot/blog/index.html new file mode 100644 index 0000000..554a952 --- /dev/null +++ b/wwwroot/blog/index.html @@ -0,0 +1,27 @@ + +

+blabla +Test fn....: {{ test_fn }}
+Test RetFN.: {{ test_return_true }}


+{% if exists("blog_listing") and length(blog_listing) > 0 %} + +## for entry in blog_listing + + + + + + + + + + + +## endfor +
{{ loop.index1 }}{{ entry.content_filename }}{{ entry.title }}{{ entry.tags }}{{ entry.author }}{{ entry.createDate }}{{ entry.publishDate }}{{ entry.published }} + {{ indent(entry.content, 12, false, false) }} + {% if loop.is_last == false %}more{% else %}eof{% endif %}
+
+{% endif %} +

+ diff --git a/wwwroot/index.html b/wwwroot/index.html index 554a952..9b05eee 100644 --- a/wwwroot/index.html +++ b/wwwroot/index.html @@ -1,27 +1,4 @@ -

-blabla -Test fn....: {{ test_fn }}
-Test RetFN.: {{ test_return_true }}


-{% if exists("blog_listing") and length(blog_listing) > 0 %} - -## for entry in blog_listing - - - - - - - - - - - -## endfor -
{{ loop.index1 }}{{ entry.content_filename }}{{ entry.title }}{{ entry.tags }}{{ entry.author }}{{ entry.createDate }}{{ entry.publishDate }}{{ entry.published }} - {{ indent(entry.content, 12, false, false) }} - {% if loop.is_last == false %}more{% else %}eof{% endif %}
-
-{% endif %} -

+ INDEX TMPL + {{ content }} diff --git a/wwwroot/index.tmpl b/wwwroot/index.tmpl deleted file mode 100644 index b42f18c..0000000 --- a/wwwroot/index.tmpl +++ /dev/null @@ -1 +0,0 @@ -INDEX TMPL -- cgit v1.2.3