Hyccup - Generate HTML from data structure in Hy and PythonΒΆ

Hyccup is a port of Hiccup for Hy and Python. It allows you to represent HTML into data structure and to dump it:

=> (import [hyccup.core [html]])
=> (html ['div {'class "greeting"} "Hello Hyccup from Hy!"])
"<div class=\"greeting\">Hello Hyccup from Hy!</div>"
>>> from hyccup.core import html
>>> html(["div", {"class": "greeting"}, "Hello Hyccup from Python!"])
'<div class="greeting">Hello Hyccup from Python!</div>'