Skip to content

Latest commit

 

History

History
29 lines (24 loc) · 474 Bytes

README.md

File metadata and controls

29 lines (24 loc) · 474 Bytes

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