.. Hyccup documentation master file, created by sphinx-quickstart on Mon Jul 26 23:05:23 2021. You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. =========================================================== 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: .. tab:: Hy .. code-block:: clj => (import hyccup [html]) => (html ["div" {"class" "greeting"} "Hello Hyccup from Hy!"]) "
Hello Hyccup from Hy!
" .. tab:: Python .. code-block:: pycon >>> from hyccup import html >>> html(["div", {"class": "greeting"}, "Hello Hyccup from Python!"]) '
Hello Hyccup from Python!
' .. toctree:: :maxdepth: 2 quickstart.rst from-hiccup.rst reference.rst .. toctree:: :caption: Development Source Code Repository Hyccup on PyPI