7 ms·
Generating `HTML` from lisps has poisoned any other approach for me, see for example https://www.neilvandyke.org/racket/html-writing/ https://www.neilvandyke.or
by cipherself 2y ago
Generating `HTML` from lisps has poisoned any other approach for me, see for example https://www.neilvandyke.org/racket/html-writing/ https://www.neilvandyke.org/racket/html-writing/, https://reagent-project.github.io/ https://reagent-project.github.io/, and https://edicl.github.io/cl-who/ https://edicl.github.io/cl-who/
- callamdelaney 2y agoThat's very nice, I wonder if we can write a sort of dsl for this in python.
- skgough 2y agoAirium is close: https://gitlab.com/kamichal/airium https://gitlab.com/kamichal/airium
- cipherself 2y agoThe problem with this is that it doesn’t map nicely to HTML (or more generally XML) as do s-expressions.
- nicwolff 2y agoMy https://pypi.org/project/xml-from-seq/ https://pypi.org/project/xml-from-seq/ is a simple mapper from e.g. ['p', 'This is a ', ['a', {'href': 'https://example.com'}, 'link']] to <p>This is a <a href="https://example.com">link</a></p>