Rendering HTML from hiccup-style lists in python.
Project description
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))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
hiccupy-1.0.0.tar.gz
(3.1 kB
view details)
Built Distribution
File details
Details for the file hiccupy-1.0.0.tar.gz
.
File metadata
- Download URL: hiccupy-1.0.0.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a6bf68c733af3e4e2f3c65e1813d7b1aca3d2568af1e23ffbc8f5f0c10d67e6 |
|
MD5 | 206d8e5fa93e644361601186ba31ff7f |
|
BLAKE2b-256 | 53aa2dc40ec52ab5ce6629adf0c5cf44e5c481885dd1326949097399ea26674d |
File details
Details for the file hiccupy-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: hiccupy-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87edab3cd6e24ea4fa1d6610aa32bc386f2a65e2258667b980fee49c6a0ce028 |
|
MD5 | 575b0eb9716a72e2115c9ec77f849225 |
|
BLAKE2b-256 | 0db877016e119594eae5bebc49da7f5220643e02dee4532443bf89ed2ffbfcb6 |