A lightweight package for html generation
Project description
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
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
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.7.tar.gz.
File metadata
- Download URL: hiccough-0.0.7.tar.gz
- Upload date:
- Size: 3.8 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 |
738fbea7228bc72c931d79bf9f9fa8c34685344f4efa1d5f4578b18afc936723
|
|
| MD5 |
8d266b34087c965bd937f4169df2e0d3
|
|
| BLAKE2b-256 |
67faf0764e39fac19a47a3058bea55614018f855aa65e0eed368dd29f6f0d2a3
|
File details
Details for the file hiccough-0.0.7-py3-none-any.whl.
File metadata
- Download URL: hiccough-0.0.7-py3-none-any.whl
- Upload date:
- Size: 3.7 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 |
a0654f885a093b0095cad798a36318cce46309a75eb92918571a8d2d7204ebf8
|
|
| MD5 |
a3f19baf55858d6f7ea627757df84dfe
|
|
| BLAKE2b-256 |
4e6a0d88bb59c173f92c91703bac1513630cb10c2ca2e650acb6e7efb42b5607
|