feature: allow for fallback includes

This commit is contained in:
Andy Burke 2026-01-26 23:32:51 -08:00
parent d07991bc60
commit 014d0e56c8
8 changed files with 93 additions and 68 deletions

View file

@ -2,8 +2,8 @@
<body>
<p>Hello. An include should follow:</p>
<!-- #include file="./test_include.html" -->
<!-- #include file="./yet_another_include.html" -->
<!-- #include "./non-existent-include.txt" or "./test_include.html" -->
<!-- #include "./yet_another_include.html" -->
<p>Goodbye. The includes should be above.</p>
</body>
</html>

View file

@ -1,3 +1,3 @@
<div>Include #1</div>
<!-- #include file="./subdir/another_include.html" -->
<!-- #include "./subdir/another_include.html" -->

View file

@ -2,10 +2,10 @@
<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" -->
<!-- #include "./some_markdown.md" -->
<!-- #include "./subdir/a-random-text-file.txt" -->
<!-- #include "./test_include.html" -->
<!-- #include "./yet_another_include.html" -->
<p>Goodbye. The include should be above.</p>
</body>

View file

@ -2,7 +2,7 @@
<body>
<p>Hello. Markdown should follow:</p>
<!-- #include file="./some_markdown.md" -->
<!-- #include "./some_markdown.md" -->
<p>Goodbye. The include should be above.</p>
</body>

View file

@ -2,7 +2,7 @@
<body>
<p>Hello. Text should follow:</p>
<!-- #include file="./subdir/a-random-text-file.txt" -->
<!-- #include "./subdir/a-random-text-file.txt" -->
<p>Goodbye. The include should be above.</p>
</body>