6 ms·
The problem with this is that it doesn’t map nicely to HTML (or more generally XML) as do s-expressions.
by cipherself 2y ago
The 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>