feature: support more than html for SSI
This commit is contained in:
parent
02c10aaa72
commit
b3e5a4e1b4
4 changed files with 190 additions and 4 deletions
19
README.md
19
README.md
|
@ -33,7 +33,23 @@ different types of content with a great deal of control.
|
|||
The default handlers are:
|
||||
|
||||
- HTML with SSI support
|
||||
eg: <html><body><!-- #include file="./body.html" --></body></html>
|
||||
eg:
|
||||
|
||||
```
|
||||
<html>
|
||||
<body>
|
||||
<!-- #include file="./header.html" -->
|
||||
|
||||
<!-- can include markdown, which will be converted to html -->
|
||||
<!-- #include file="./essay.md" -->
|
||||
|
||||
<div id="footer">
|
||||
<!-- you can include text files as well -->
|
||||
<!-- #include file="./somedir/footer.txt" >
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
```
|
||||
- markdown
|
||||
will serve markdown as HTML (or raw with an Accept header of text/markdown)
|
||||
- Typescript
|
||||
|
@ -92,7 +108,6 @@ object indicating permission is denied or similar.
|
|||
|
||||
- [ ] reload typescript if it is modified on disk
|
||||
|
||||
|
||||
#### NOTE ON WINDOWS
|
||||
|
||||
Because Windows has more restrictions on filenames, you can use `___` in place of `:` in
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue