hiccough
Hiccough is a simple html templating tool heavily inspired by https://github.com/weavejester/hiccup. It allows for the generation of html strings from nested lists of python like so
hiccough.html(["div.myclass", ["p", "Hello World!"]])
=> '<div class="myclass"><p>Hello World!</p></div>'
Nesting Shorthand
Hiccough supports a nesting syntax via > for multiple nested tags
with only classes and ids.
html(["div.a>div.b>div.c", "It's divs all the way down!"])
=>'<div class="a"><div class="b"><div class="c"></div>It's divs all the way down!</div></div>'
CLI
Hiccough currently support execution on the cli with the first argument being
a string that evals to a python list matching what would get passed to html/1
Metadata
Release files for hiccough 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| hiccough-0.2.0.tar.gz | 5.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hiccough-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.5 kB
Release files / hiccough-0.2.0.tar.gz
| Download URL | hiccough-0.2.0.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ca94d5bb1283c1365a50fa6191d813123fb7c36c84f1889bdbf0a0c6b285b7e6
|
|
BLAKE2b-256 checksum How to use checksums |
6e7e5495bf6abbb8e596bcca104d2067e11068cf027b28c405f8f56e4fa176b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.8
|
Release files / hiccough-0.2.0-py3-none-any.whl
| Download URL | hiccough-0.2.0-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7567df819707728b80623f5c6769c99473eb8dcbab06f916df9a38495a3ca9c4
|
|
BLAKE2b-256 checksum How to use checksums |
b442097da70e69f20e2252a62c48935dcc884b0e13b4c98912a4e8775deb8de5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.8
|