{ "info": { "author": "Nicolas Bessi", "author_email": "nbessi@gmail.com", "bugtrack_url": null, "classifiers": [], "description": ".. image:: https://travis-ci.org/nbessi/pyhiccup.svg?branch=master\n :target: https://travis-ci.org/nbessi/pyhiccup\n\n.. image:: https://coveralls.io/repos/nbessi/pyhiccup/badge.png?branch=master\n :target: https://coveralls.io/r/nbessi/pyhiccup?branch=master\n\npyhiccup 0.1\n============\n\nPython version of clojure hiccup https://github.com/weavejester/hiccup\nOriginal concept by James Reeves\n\nPyhiccup is a library for representing HTML in Python. It uses list or tuple\nto represent elements, and dict to represent an element's attributes.\nSupported Python versions are:\n\n- 2.6\n- 2.7\n- 3.3\n- 3.4\n\nInstall\n-------\n::\n\n pip install pyhiccup\n\nSyntax\n------\n\nHere is a basic example of pyhiccup syntax.\n\n.. code-block:: python\n\n\n >>> from pyhiccup.core import html\n >>> data = [\n >>> ['div',\n >>> {'class': 'a-class', 'data-y': '23'},\n >>> ['span', 'my-text',\n >>> ['ul', [['li', x] for x in ['caf\u00e9', 'milk', 'sugar']]]]]\n >>> ]\n >>> html(data)\n u'