A lightweight package for html generation
Project description
hiccough
Hiccough is a simple html templating tool. It allow 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>'
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
hiccough-0.0.4.tar.gz
(3.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hiccough-0.0.4.tar.gz.
File metadata
- Download URL: hiccough-0.0.4.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
57150d8fc59ab53e7e0e154f26ff6533be10bd6d89279276a5cda78b7306c6a1
|
|
| MD5 |
33777ac109ba8a24c5aa4245aa179ad5
|
|
| BLAKE2b-256 |
819cc2d477d074c168c52edb7ad941ead9f93ac260ce206de054e885b38dd1eb
|
File details
Details for the file hiccough-0.0.4-py3-none-any.whl.
File metadata
- Download URL: hiccough-0.0.4-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c89ee5c090e6e879989146b57dd6f49ea153efdada82248a59874d117a3773d6
|
|
| MD5 |
3c5061c81f9f8fef7f4c4e65283d6ab9
|
|
| BLAKE2b-256 |
18ea1d1bfd9a1c2d5dd7b66b2f2d7d4c0629fa122ec9608422c6242296542f04
|