Re: [dev] mkws(1) - simple static site generator

2020-09-01 Thread Thomas Oltmann
Am Di., 1. Sept. 2020 um 10:49 Uhr schrieb Thomas Oltmann : > Take navigation menus as an example. It is my understanding that werc > offers a pre-baked solution for this. > In mkws, if I needed a navigation bar on my pages, what I might do is > I could write a mknav.sh script that scans > through

Re: [dev] mkws(1) - simple static site generator

2020-09-01 Thread Thomas Oltmann
Hi Adrian! I don't have a lot of time right now, so here's a list of my thoughts in no particular order: - I like the general idea. The more I think about it, shell script is sort of a natural fit for templating. However, you should put a disclaimer somewhere warning people to not let

Re: [dev] mkws(1) - simple static site generator

2020-09-01 Thread Adrian Grigore
Thanks for your feedback! I agree that shell script is sort of a natural fit for templating, you just take plain text and massage it into HTML. There are 3rd party solutions for ugc for static sites like https://staticman.net/ which are acceptable. OpenBSD stat is used to generate the timestamp