A port of Clojure Hiccup for Hy
Project description
Hyccup
Hyccup is a port of Hiccup for Hy, a Lisp embed in Python.
It allows you to represent HTML into data structure and to dump it.
=> (import hyccup.core [html])
=> (html ['div {'class "my-class" 'id "my-id"} "Hello Hyccup"])
"<div class=\"my-class\" id=\"my-id\">Hello Hyccup</div>"
Hyccup can also be used in Python:
>>> from hyccup.core import html
>>> html(['div', {'class': 'my-class', 'id': 'my-id'}, 'Hello Hyccup'])
'<div class="my-class" id="my-id">Hello Hyccup</div>'
More information in the documentation.
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
hyccup-1.0.0a5.tar.gz
(10.2 kB
view details)
Built Distribution
hyccup-1.0.0a5-py3-none-any.whl
(11.5 kB
view details)
File details
Details for the file hyccup-1.0.0a5.tar.gz
.
File metadata
- Download URL: hyccup-1.0.0a5.tar.gz
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.14 CPython/3.10.5 Linux/5.15.60-1-MANJARO
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a342843fe1183f2654d2447d795d9cd28096b04159423c415732e4646a13a90 |
|
MD5 | ad615998973eb88655c7621785d86d6c |
|
BLAKE2b-256 | 351c695c2a750e7c6bcc9beeee975a7ece4f9a83a4719f119b30599a057b59d7 |
File details
Details for the file hyccup-1.0.0a5-py3-none-any.whl
.
File metadata
- Download URL: hyccup-1.0.0a5-py3-none-any.whl
- Upload date:
- Size: 11.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.14 CPython/3.10.5 Linux/5.15.60-1-MANJARO
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7e872c9b1692e2839c3f1101aacc3f02773244664ec19b5d6d76a4c0bed21b7 |
|
MD5 | 42b97abaa343696d846fe24cf205ab41 |
|
BLAKE2b-256 | 4b5fa52dbfd1f31eb782a0088f4fa008aab534b76453bb9b99818b2316528714 |