diff options
author | Martin Ashby <martin@ashbysoft.com> | 2022-10-14 22:57:09 +0100 |
---|---|---|
committer | Martin Ashby <martin@ashbysoft.com> | 2022-10-14 22:57:09 +0100 |
commit | f9c72b3d8f047b107449a7c6db8a602fd5535438 (patch) | |
tree | a5d32ab6a993411203ddd77abb865a70b2e2fb6c /README.md | |
download | blogsite-main.tar.gz blogsite-main.tar.bz2 blogsite-main.tar.xz blogsite-main.zip |
Initial commitmain
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..be7aeaf --- /dev/null +++ b/README.md @@ -0,0 +1,21 @@ +# spa + +Example SPA approach to a simple blog website. + +## prerequisites +- [caddy web server](https://caddywebserver.com) + +## run +launch with `caddy run` and open the browser to http://localhost + +## how it works + +caddy tries to load from files, and falls back to index.html by default if no file matches. + +[index.html](./index.html) has a plain page template and uses javascript to dynamically create navigation and load the content. + +[routes.json](./routes.json) file contains the metadata for website pages (currently just title and content location) + +content/* files are HTML content to be embedded in the page template. + +assets/* files are just plain files to be served direct.
\ No newline at end of file |