sorsarre: Magic hat! (Default)
[personal profile] sorsarre
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.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org

Profile

sorsarre: Magic hat! (Default)
sorsarre

April 2025

M T W T F S S
 123456
78910111213
14 151617181920
21222324252627
282930    

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Apr. 23rd, 2025 12:54 pm
Powered by Dreamwidth Studios