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 [html])
=> (html ["div" {"class" "greeting"} "Hello Hyccup from Hy!"])
"<div class=\"greeting\">Hello Hyccup from Hy!</div>"
>>> from hyccup import html
>>> html(["div", {"class": "greeting"}, "Hello Hyccup from Python!"])
'<div class="greeting">Hello Hyccup from Python!</div>'