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.0a3.tar.gz
(10.3 kB
view details)
Built Distribution
hyccup-1.0.0a3-py3-none-any.whl
(11.9 kB
view details)
File details
Details for the file hyccup-1.0.0a3.tar.gz
.
File metadata
- Download URL: hyccup-1.0.0a3.tar.gz
- Upload date:
- Size: 10.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.11 CPython/3.9.7 Linux/5.14.10-199.current
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26a174777fce284abdbe2a72ffee471e39d0322e7b979a6bb80c390b995c82b8 |
|
MD5 | de1a494264bd95802662e4146060de22 |
|
BLAKE2b-256 | 74405424fe020dda4b99984a6a10e9b880fd39e2af3e2cdea09af14ee0fd4f3d |
File details
Details for the file hyccup-1.0.0a3-py3-none-any.whl
.
File metadata
- Download URL: hyccup-1.0.0a3-py3-none-any.whl
- Upload date:
- Size: 11.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.11 CPython/3.9.7 Linux/5.14.10-199.current
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2cf4ed65698d075d893ae0f0cf0f7d3a816df778b158ca00f49273b6ffe190a2 |
|
MD5 | a445d25ee6f3fdde452a703d98ee8321 |
|
BLAKE2b-256 | cb8a64adfdf40f7b590a5f119d54af78115c7d3a877a9439dd8ac493db7a5194 |