Rendering HTML from hiccup-style lists in python.
First, install hiccupy
:
python3 -m pip install hiccupy
Then simply import render
and render lists to HTML!
from hiccupy import render
lst = [
"body",
[
"div",
{"id": "myDiv"},
[
"h1",
{"class": "header"},
"Hello World!",
],
],
]
print(render(lst))