/hiccupy

Rendering HTML from hiccup-style lists in python

Primary LanguagePythonBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

hiccupy

Rendering HTML from hiccup-style lists in python.

Usage

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))