snuggsi ツ Server - Feel right at $HOME
- Middleware
- Hot code reloading
- Server Side Rendering
- Custom layouts with the layouts/ directory
- Static file serving. ./ & ./static/ is mapped to /
- MDN Properly COnfiguring Server MIME Types - https://developer.mozilla.org/en-US/docs/Web/Security/Securing_your_site/Configuring_server_MIME_types
- Brendan Eich / Douglas Crockford discussion on application/ecmascript - https://mail.mozilla.org/pipermail/es-discuss/2011-August/016267.html
Mount resource
const
{ Server }
= require ( 'snuggsi' )
( new Server )
.serve ``
.mount ( 'foo', resource `bar` )
.listen ``Serve a specified directory as root
const
{ Server }
= require ( 'snuggsi' )
( new Server )
.serve `path/to/static/assets`
.listen ``- https://blog.dwac.dev/posts/html-fragments
- https://blog.dwac.dev/posts/html-fragments-routing
- https://blog.dwac.dev/posts/streamable-html-fragments
- https://developer.mozilla.org/en-US/docs/Web/API/DOMParser
- https://github.com/dgp1130/html-fragments-demo/tree/blog-post-streaming
- https://developer.mozilla.org/en-US/docs/Web/API/DOMImplementation/createHTMLDocument
