(no subject)
Jul. 24th, 2021 03:27 pm![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Been pondering going standalone with a handwritten static site generator.
Being a mammoth from the last century, the first thing that came to mind was writing stuff in stiff XML and then generating html/gemini/rss/dw-xpost with the generators from a single source. It all looked fine in my head until I've found out that most XSLT processors only support XSLT 1.0 and XPath 1.0, which got me really pissed. The only one that supports newer editions is Saxon, and it's only JS/.Net/Java, none of which are my bag of beans.
Then figured writing posts in XML is mighty inconvenient and something easier less verbose is necessary, like Markdown or something.
Ended up finding a wicked MD parser written in pure C: https://github.com/mity/md4c
SAX model, blazing fast, not hard to hack on, easy to bind to other languages if the need arises, absolutely wicked!
Instead of making a move on any of that setup though, I ended up spending the entire evening yesterday making a knot pattern in pure CSS. Back in the day it took me like three days, and now, with calc() and var() this stuff is far less tedious.
Being a mammoth from the last century, the first thing that came to mind was writing stuff in stiff XML and then generating html/gemini/rss/dw-xpost with the generators from a single source. It all looked fine in my head until I've found out that most XSLT processors only support XSLT 1.0 and XPath 1.0, which got me really pissed. The only one that supports newer editions is Saxon, and it's only JS/.Net/Java, none of which are my bag of beans.
Then figured writing posts in XML is mighty inconvenient and something easier less verbose is necessary, like Markdown or something.
Ended up finding a wicked MD parser written in pure C: https://github.com/mity/md4c
SAX model, blazing fast, not hard to hack on, easy to bind to other languages if the need arises, absolutely wicked!
Instead of making a move on any of that setup though, I ended up spending the entire evening yesterday making a knot pattern in pure CSS. Back in the day it took me like three days, and now, with calc() and var() this stuff is far less tedious.