Changelog
- Support `staticDir` in `SSG` routing (8).
nim
server.routes:
staticDir "myDirectory"
- Support regex patterns `SSG` routing (9).
nim
server.routes:
"/regex/pattern{patternId:/[a-zA-Z0-9_]/}"
echo patternId
- Support `SPA` with `JS` backend.
nim
var app = newApp()
app.routes:
"/":
echo path
buildHtml(`div`):
"Hello, world!"
"/hello!":
buildHtml(`div`):
"No, bye!"
app.start()
- New syntax sugar (10).
- Some fixes and improves (11)