Skip to content

ontodev/hiccupy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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