semvec/pypi-packages huggingface dataset:
hyccup 1.1.0
A port of Clojure Hiccup for Hy
License: MIT
Requires Python: >=3.9,<3.11
Keywords: template,html,hiccup,hy

# Hyccup

[![PyPi](https://img.shields.io/pypi/v/hyccup?label=PyPi)](https://pypi.org/project/hyccup/)
[![Python Version](https://img.shields.io/pypi/pyversions/hyccup?label=Python)](https://pypi.org/project/hyccup/)
[![CI](https://github.com/Arkelis/hyccup/actions/workflows/ci.yml/badge.svg)](https://github.com/Arkelis/hyccup/actions/workflows/ci.yml)
[![CD](https://github.com/Arkelis/hyccup/actions/workflows/cd.yml/badge.svg)](https://github.com/Arkelis/hyccup/actions/workflows/cd.yml)

Hyccup is a port of [Hiccup](https://github.com/weavejester/hiccup)
for [Hy](https://github.com/hylang/hy), a Lisp embed in Python.

It allows you to represent HTML into data structure and to dump it.

```hy
=> (import hyccup [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:

```pycon
>>> from hyccup 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](https://hyccup.pycolore.fr).