From 80032ad926574063e1cb53b7de89807d697891e1 Mon Sep 17 00:00:00 2001 From: Andy Burke Date: Mon, 14 Jul 2025 19:24:35 -0700 Subject: [PATCH] feature: support more than html in SSI --- tests/www/includes/some_markdown.md | 25 +++++++++++++++++++ .../includes/subdir/a-random-text-file.txt | 1 + tests/www/includes/with_lots_of_includes.html | 12 +++++++++ tests/www/includes/with_markdown.html | 9 +++++++ tests/www/includes/with_text.html | 9 +++++++ 5 files changed, 56 insertions(+) create mode 100644 tests/www/includes/some_markdown.md create mode 100644 tests/www/includes/subdir/a-random-text-file.txt create mode 100644 tests/www/includes/with_lots_of_includes.html create mode 100644 tests/www/includes/with_markdown.html create mode 100644 tests/www/includes/with_text.html diff --git a/tests/www/includes/some_markdown.md b/tests/www/includes/some_markdown.md new file mode 100644 index 0000000..0f99aa3 --- /dev/null +++ b/tests/www/includes/some_markdown.md @@ -0,0 +1,25 @@ +# This is Markdown + +Welcome to it. + +## This is a level 2 heading + +Can you read this? + +### Let's go deeper, level 3 heading + + - this + - is + - a + - list? + +### How about a table? + +| column 1 | column 2 | +| -------- | -------- | +| hi | hey | +| hoy | hah | + +## Ok, that seems sufficient? + +Hardly, but we'll get back to this. diff --git a/tests/www/includes/subdir/a-random-text-file.txt b/tests/www/includes/subdir/a-random-text-file.txt new file mode 100644 index 0000000..fc5c538 --- /dev/null +++ b/tests/www/includes/subdir/a-random-text-file.txt @@ -0,0 +1 @@ +Just some random text in a random text file. diff --git a/tests/www/includes/with_lots_of_includes.html b/tests/www/includes/with_lots_of_includes.html new file mode 100644 index 0000000..3bae96f --- /dev/null +++ b/tests/www/includes/with_lots_of_includes.html @@ -0,0 +1,12 @@ + + +

Hello. Markdown should follow:

+ + + + + + +

Goodbye. The include should be above.

+ + diff --git a/tests/www/includes/with_markdown.html b/tests/www/includes/with_markdown.html new file mode 100644 index 0000000..7ed8071 --- /dev/null +++ b/tests/www/includes/with_markdown.html @@ -0,0 +1,9 @@ + + +

Hello. Markdown should follow:

+ + + +

Goodbye. The include should be above.

+ + diff --git a/tests/www/includes/with_text.html b/tests/www/includes/with_text.html new file mode 100644 index 0000000..ed4965d --- /dev/null +++ b/tests/www/includes/with_text.html @@ -0,0 +1,9 @@ + + +

Hello. Text should follow:

+ + + +

Goodbye. The include should be above.

+ +