feature: allow for fallback includes
This commit is contained in:
parent
d07991bc60
commit
014d0e56c8
8 changed files with 93 additions and 68 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
<div>Include #1</div>
|
||||
|
||||
<!-- #include file="./subdir/another_include.html" -->
|
||||
<!-- #include "./subdir/another_include.html" -->
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue