diff options
author | lns <matzeton@googlemail.com> | 2021-10-21 14:52:26 +0200 |
---|---|---|
committer | lns <matzeton@googlemail.com> | 2021-10-21 14:59:00 +0200 |
commit | 9266070e51422a71566ee5c04db42feec996c485 (patch) | |
tree | 4ff57de8bfce87bde001c80c7ab9fae3080aa248 /wwwroot/blog | |
parent | 384724a00be9dbb8f40d295f99b9c6bcfb48b387 (diff) |
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 <matzeton@googlemail.com>
Diffstat (limited to 'wwwroot/blog')
-rw-r--r-- | wwwroot/blog/index.html | 27 |
1 files changed, 27 insertions, 0 deletions
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 @@ +<html><body> +<p> +<b>blabla</b> +Test fn....: <b>{{ test_fn }}</b><br> +Test RetFN.: <b>{{ test_return_true }}</b><br><br><br> +{% if exists("blog_listing") and length(blog_listing) > 0 %} +<table> +## for entry in blog_listing + <tr> + <td>{{ loop.index1 }}</td> + <td>{{ entry.content_filename }}</td> + <td>{{ entry.title }}</td> + <td>{{ entry.tags }}</td> + <td>{{ entry.author }}</td> + <td>{{ entry.createDate }}</td> + <td>{{ entry.publishDate }}</td> + <td>{{ entry.published }}</td> + <td> + {{ indent(entry.content, 12, false, false) }} + </td> + <td>{% if loop.is_last == false %}more{% else %}eof{% endif %}<br> + </tr> +## endfor +</table> +{% endif %} +</p> +</body></html> |