ln -s thing reminds me that gatling kind of blew my mind in terms of design by using symlinks for URL redirections.
I knew you could put whatever as the symlink value but ending up doing something like ln -s https://localhost/ foo is weird.
PS. Those 42 lines are all the source code.
That’s it.
No scaffolding. No npx create this-or-that.
1. Create a folder called toast.
2. Add those 42 lines of code to a file called index.page.js in that folder.
3. Run kitten¹.
Now hit https://localhost in your browser and you will see the example running just like in the video in the first post.
:kitten: 💕
¹ https://codeberg.org/kitten/app
# Kitten #SmallWeb #StreamingHTML #web #dev #htmx #hypermedia #WebSocket #html #css #JavaScript #toast
GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.
All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.