Hi all, I felt tired of the JavaScript landscape and build a simple static site generator. Its templates are shell based. Please let me know your opinions! Thank you!
Hi all,
I felt tired of the JavaScript landscape and build a simple static site generator. Its templates are shell based.
This is super cool! It looks like it'd be great to tie in with some of my existing scripts. I could hack together a comments section that you have to submit via email. Not that it's a good idea,...
This is super cool!
It looks like it'd be great to tie in with some of my existing scripts.
I could hack together a comments section that you have to submit via email. Not that it's a good idea, but it's fun to think about oddball stuff that would be much easier with access to the rest of my shell compared to other static site generators.
I've got various alert scripts for systems in bash. Run this near the end to generate a detailed report, and send out the link via SMS when there's an emergency.
LOL, that was my first thought. Pretty sure it's a security nightmare to do that. Most of those languages spent a lot of time trying to prevent making random system calls, not make it easier. But...
LOL, that was my first thought.
Pretty sure it's a security nightmare to do that. Most of those languages spent a lot of time trying to prevent making random system calls, not make it easier.
But it'd be some quality rube goldberg fun. Do it and warn people to never expose it to the internet.
Oh most definitely. I'd probably keep it fully containerized in podman. Like a 1960's hotrod... a deathtrap environment-murdering machine, but oh so fun to drive.
Oh most definitely. I'd probably keep it fully containerized in podman.
Like a 1960's hotrod... a deathtrap environment-murdering machine, but oh so fun to drive.
Where's the source code for this? The .tars don't seem to include it. Ironically at only a few hundred lines including the full source code in the docs wouldn't be unreasonable. And there's no...
Where's the source code for this? The .tars don't seem to include it. Ironically at only a few hundred lines including the full source code in the docs wouldn't be unreasonable. And there's no better documentation than the actual code you're running.
Hi all,
I felt tired of the JavaScript landscape and build a simple static site generator. Its templates are shell based.
Please let me know your opinions! Thank you!
This is super cool!
It looks like it'd be great to tie in with some of my existing scripts.
I could hack together a comments section that you have to submit via email. Not that it's a good idea, but it's fun to think about oddball stuff that would be much easier with access to the rest of my shell compared to other static site generators.
I've got various alert scripts for systems in bash. Run this near the end to generate a detailed report, and send out the link via SMS when there's an emergency.
I'm actually considering running
pp
under CGI at some point. Sort of like a small PHP.LOL, that was my first thought.
Pretty sure it's a security nightmare to do that. Most of those languages spent a lot of time trying to prevent making random system calls, not make it easier.
But it'd be some quality rube goldberg fun. Do it and warn people to never expose it to the internet.
Running it inside a chroot with handpicked binaries would make it safer.
Oh most definitely. I'd probably keep it fully containerized in podman.
Like a 1960's hotrod... a deathtrap environment-murdering machine, but oh so fun to drive.
Wouldn't compare it to a deathtrap. 😛
I use this regularly and as someone comfortable in the shell, it still kind of surprised me how well shell can be used as a templating language.
Where's the source code for this? The .tars don't seem to include it. Ironically at only a few hundred lines including the full source code in the docs wouldn't be unreasonable. And there's no better documentation than the actual code you're running.
https://mkws.sh/docs.html#sources
Not a bad idea to include the sources in the docs.
The first link there just seems to have a Makefile, manpage, and a binary
That binary is a shell script 🙃. It counts as sources.