feature: support more than html in SSI
This commit is contained in:
parent
b3e5a4e1b4
commit
80032ad926
5 changed files with 56 additions and 0 deletions
25
tests/www/includes/some_markdown.md
Normal file
25
tests/www/includes/some_markdown.md
Normal file
|
@ -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.
|
1
tests/www/includes/subdir/a-random-text-file.txt
Normal file
1
tests/www/includes/subdir/a-random-text-file.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Just some random text in a random text file.
|
12
tests/www/includes/with_lots_of_includes.html
Normal file
12
tests/www/includes/with_lots_of_includes.html
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
<html>
|
||||||
|
<body>
|
||||||
|
<p>Hello. Markdown should follow:</p>
|
||||||
|
|
||||||
|
<!-- #include file="./some_markdown.md" -->
|
||||||
|
<!-- #include file="./subdir/a-random-text-file.txt" -->
|
||||||
|
<!-- #include file="./test_include.html" -->
|
||||||
|
<!-- #include file="./yet_another_include.html" -->
|
||||||
|
|
||||||
|
<p>Goodbye. The include should be above.</p>
|
||||||
|
</body>
|
||||||
|
</html>
|
9
tests/www/includes/with_markdown.html
Normal file
9
tests/www/includes/with_markdown.html
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
<html>
|
||||||
|
<body>
|
||||||
|
<p>Hello. Markdown should follow:</p>
|
||||||
|
|
||||||
|
<!-- #include file="./some_markdown.md" -->
|
||||||
|
|
||||||
|
<p>Goodbye. The include should be above.</p>
|
||||||
|
</body>
|
||||||
|
</html>
|
9
tests/www/includes/with_text.html
Normal file
9
tests/www/includes/with_text.html
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
<html>
|
||||||
|
<body>
|
||||||
|
<p>Hello. Text should follow:</p>
|
||||||
|
|
||||||
|
<!-- #include file="./subdir/a-random-text-file.txt" -->
|
||||||
|
|
||||||
|
<p>Goodbye. The include should be above.</p>
|
||||||
|
</body>
|
||||||
|
</html>
|
Loading…
Add table
Add a link
Reference in a new issue