{ "info": { "author": "", "author_email": "", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha" ], "description": "Macros\r\n=====\r\n\r\nVersion 0.0.1.\r\n\r\n\r\nMacros is a collection of Hy macros. It will be developed\r\nfurther to provide further convenience. It is on a very early stage.\r\nDO NOT USE IN PRODUCTION.\r\n\r\ninstall with\r\n\r\n.. code-block:: sh\r\n \r\n pip install git+git://github.com/Hylands/macros.git\r\n\r\nfor the very latest version, or\r\n\r\n\r\n.. code-block:: sh\r\n \r\n pip install macros\r\n\r\nfor the more stable version.\r\n\r\nThen use the macros in hy using\r\n\r\n.. code-block:: hy\r\n \r\n (require macros.flask)\r\n (require macros.flow)\r\nand then use the route macro.\r\n\r\n\r\n.. code-block:: hy\r\n \r\n (route \"/\" \"home.html\")\r\n (route \"/\" (defn womethods [] (\"hello, world\")))\r\n (route \"/\" [\"GET\" \"POST\"] (defn wmethods [] (\"hello, world\")))\r\n (route \"/\" [\"GET\" \"POST\"] \"templatewmethods.html\")\r\n (route \"//
\" \"template.html\" [name] [[address \"N/A\"]])\r\n\r\nThe syntax is for a template:\r\n \r\n.. code-block:: hy\r\n \r\n (route *route-endpoint* [*possibly a list of methods*] *template* [*required args*] [*optional args*])\r\n\r\nwhere *optional args* can be of the form [arg1 arg2] for the default value of None\r\nor [[arg1 42] arg2] where arg1 would have the default value of 42, but arg2 would have the default value of None.", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Hylands/macros", "keywords": "Hy, macros", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "macros", "package_url": "https://pypi.org/project/macros/", "platform": "", "project_url": "https://pypi.org/project/macros/", "project_urls": { "Homepage": "https://github.com/Hylands/macros" }, "release_url": "https://pypi.org/project/macros/0.0.1/", "requires_dist": null, "requires_python": null, "summary": "", "version": "0.0.1" }, "last_serial": 1388512, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "be904b304401a6e7be6afe9bb76ec212", "sha256": "04d2c7b614ce2ae401764ab37b1faa507dce26e3295bd93a679402864228218a" }, "downloads": -1, "filename": "macros-0.0.1.tar.gz", "has_sig": false, "md5_digest": "be904b304401a6e7be6afe9bb76ec212", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1833, "upload_time": "2015-01-20T00:08:44", "url": "https://files.pythonhosted.org/packages/29/e0/6f48cec5972bf3e034823859c877830b611f9e48ddc7e10132fa393302e2/macros-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "be904b304401a6e7be6afe9bb76ec212", "sha256": "04d2c7b614ce2ae401764ab37b1faa507dce26e3295bd93a679402864228218a" }, "downloads": -1, "filename": "macros-0.0.1.tar.gz", "has_sig": false, "md5_digest": "be904b304401a6e7be6afe9bb76ec212", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1833, "upload_time": "2015-01-20T00:08:44", "url": "https://files.pythonhosted.org/packages/29/e0/6f48cec5972bf3e034823859c877830b611f9e48ddc7e10132fa393302e2/macros-0.0.1.tar.gz" } ] }