feature: add ability to drop a .spa.static into the tree
This commit is contained in:
parent
75439172c9
commit
d07991bc60
6 changed files with 175 additions and 70 deletions
10
README.md
10
README.md
|
|
@ -78,10 +78,15 @@ If you place a `.spa` file under the root, that directory will try to return an
|
|||
app/
|
||||
.spa
|
||||
index.html
|
||||
static/
|
||||
.spa.static
|
||||
some_static_file.txt
|
||||
```
|
||||
|
||||
If you have this file structure (assuming `www` is the root), a `GET` to `/app/foo/bar` will return the `index.html` file in the `app/` directory. (Which would then presumably handle the url in `window.location` appropriately.)
|
||||
|
||||
If you have a subdirectory you still want to allow 404s to happen in, you can place a `.spa.static` file in your tree to skip the typical SPA handler.
|
||||
|
||||
### Typescript Handling
|
||||
|
||||
These types and interface define the default serverus Typescript handler's expected
|
||||
|
|
@ -136,8 +141,3 @@ TODO: write me
|
|||
- [ ] write examples above
|
||||
- [ ] reload typescript if it is modified on disk
|
||||
- [X] wrap markdown converted to html in a div with a class for styling
|
||||
|
||||
## CHANGELOG
|
||||
|
||||
- 0.13.0
|
||||
- wrap converted markdown in an `html-from-markdown` class
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue