{ "info": { "author": "Andy Grabow", "author_email": "andy@freilandkiwis.de", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Framework :: Django", "Framework :: Django :: 1.11", "Framework :: Django :: 2.0", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "PyPugJS |PyPiPackage|_ |BuildStatus|_ |Coverage|_\n===================================================\n\n.. |PyPiPackage| image:: https://badge.fury.io/py/pypugjs.svg\n.. _PyPiPackage: https://badge.fury.io/py/pypugjs\n\n.. |BuildStatus| image:: https://travis-ci.org/kakulukia/pypugjs.svg\n.. _BuildStatus: https://travis-ci.org/kakulukia/pypugjs\n\n.. |Coverage| image:: https://codecov.io/gh/kakulukia/pypugjs/branch/master/graph/badge.svg\n.. _Coverage: https://codecov.io/gh/kakulukia/pypugjs\n\n**PyPugJS is a fork of** `PyJade `_\n**with the name Jade changed to** `PugJS `_.\n\n**Additional disclaimer:** Since the original pypugjs died i took the liberty to keep it alive, because\nsince starting to work with the jade compiler for node I hate writing HTML and want to continue using it in my Django projects.\nI will keep the existing non Django stuff inside the project, but I cannot support anything other since I'm not actively using\nit not will be in the foreseable future. Tornado, Mako etc. support will be welcome tho!\n\nPyPugJS is a high performance port of PugJS for python, that converts any .pug source into different\nTemplate-languages (Django, Jinja2, Mako or Tornado).\n\nUTILITIES\n=========\nTo simply output the conversion to your console::\n\n pypugjs [-c django|jinja|mako|tornado] input.pug [output.html]\n\nINSTALLATION\n============\n\nTo install pypugjs::\n\n pip install pypugjs\n\nNow simply **name your templates with a `.pug` extension** and this PugJS compiler\nwill do the rest. Any templates with other extensions will not be compiled\nwith the pypugjs compiler.\n\n`Framework specific installation instructions `_\n\nSyntax\n======\n\nGenerally the same as the PugJS Node module (except of cases and several other features, which are not implemented)\nhttps://github.com/pugjs/pug/blob/master/README.md\n\n\nExample\n-------\n\nThis code\n\n.. code:: pug\n\n !!! 5\n html(lang=\"en\")\n head\n title= pageTitle\n script(type='text/javascript').\n if (foo) {\n bar()\n }\n body\n h1.title PugJS - node template engine\n #container\n if youAreUsingPugJS\n p You are amazing\n else\n p Get on it!\n\n\nConverts to\n\n.. code:: html\n\n \n \n \n {{pageTitle}}\n \n \n \n

PugJS - node template engine

\n
\n {%if youAreUsingPugJS%}\n

You are amazing

\n {%else%}\n

Get on it!

\n {%endif%}\n
\n \n \n\nConvert existing templates online with the `HTML2Jade converter `_.\n\n\nRegister filters\n================\n\nIf you want to register a function as a filter, you only have to\ndecorate the function with ``pypugjs.register_filter(\"filter_name\")``\n\n.. code:: python\n\n import pypugjs\n\n @pypugjs.register_filter('capitalize')\n def capitalize(text, ast):\n return text.capitalize()\n\n\nNotable Features\n===================\n\nAdding conditional classes:\n\n.. code:: pug\n\n a(class={'active-class': True, 'another': False})\n\nDefine mixins like this *mixins/foo.pug*:\n\n.. code:: pug\n\n mixin foo(data)\n .foo {{ data }}\n\nAnd use them in your templates like this:\n\n.. code:: pug\n\n include mixins/foo.pug\n\n div\n +foo(data)\n\n\n\nTESTING\n=======\n\nTo start the testsuite, start the following commands::\n\n make init\n make test\n\nTODOs and BUGS\n==============\nSee: https://github.com/kakulukia/pypugjs/issues\n\n`ChangeLog `_\n\n\n\n\nHistory\n-------\n\n5.1.2\n+++++++\n\n* added Makefile for testing, installing, releasing, linting ...\n* added coverage reports\n* package is mainly base on the cookiecutter package\n* additional release helpers\n* packages passes flake8 test\n\n\n5.1.1\n+++++++\n\n* conditional classes feature (thx to paradoxxxzero)\n* mixin support for jinja (matin)\n* mixin support for django\n* refactored the django tests to actually use the file loader\n* some pep8 fixes\n\n\nAuthors\n---------\n\n* PyPugs was originally created as PyJade by Syrus Akbary in November 2011.\n* It was then renamed maintained by Matan Noam Shavit\n* Since I need it for my projects and hate coding plain HTML, I continued maintaining this package.\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "https://github.com/kakulukia/pypugjs/tarball/5.8.1", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/kakulukia/pypugjs", "keywords": "pug,pugjs,template,converter", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "pypugjs", "package_url": "https://pypi.org/project/pypugjs/", "platform": "", "project_url": "https://pypi.org/project/pypugjs/", "project_urls": { "Download": "https://github.com/kakulukia/pypugjs/tarball/5.8.1", "Homepage": "https://github.com/kakulukia/pypugjs" }, "release_url": "https://pypi.org/project/pypugjs/5.8.1/", "requires_dist": [ "six", "chardet" ], "requires_python": "", "summary": "PugJS syntax template adapter for Django, Jinja2, Mako and Tornado templates", "version": "5.8.1" }, "last_serial": 5202839, "releases": { "5.0.1": [ { "comment_text": "", "digests": { "md5": "3d07a1f03e8a56c330184f84163e1885", "sha256": "13934733348ea64afd8004e326911c3eb798c1aa5252e3535856968a1fedc0ba" }, "downloads": -1, "filename": "pypugjs-5.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "3d07a1f03e8a56c330184f84163e1885", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 37099, "upload_time": "2018-01-11T20:18:12", "url": "https://files.pythonhosted.org/packages/21/35/7ea82a0b82e6f40dc35725d32f5608912c245d33d2ac38e2988883c67314/pypugjs-5.0.1-py3-none-any.whl" } ], "5.1.0": [ { "comment_text": "", "digests": { "md5": "739d911ffa849dc3185a747a1c60c1ed", "sha256": "6ee87ab83637f3c3acfd02d054532a4c35e5ca3cf529a8eae750c3e8da0d41ed" }, "downloads": -1, "filename": "pypugjs-5.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "739d911ffa849dc3185a747a1c60c1ed", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 38306, "upload_time": "2018-01-22T15:33:56", "url": "https://files.pythonhosted.org/packages/8f/c6/b34f3f1ed0910ad1359c6be4584fc3bdf6bcb0519aa48283c9a00e0d42e5/pypugjs-5.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "05b2a94935a2878f7e558748893ccd79", "sha256": "e5277dfd99029810af858960e8968f5d98a1ec858ae7011163ddbc7947659afd" }, "downloads": -1, "filename": "pypugjs-5.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "05b2a94935a2878f7e558748893ccd79", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 38128, "upload_time": "2018-01-13T21:53:00", "url": "https://files.pythonhosted.org/packages/58/e2/b92ea559cdc241fd97d4fe0f9617ae24e767ac15c52cbf7971a92d27c48c/pypugjs-5.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "78727ee0c6fe150dd0f8a326069efd3d", "sha256": "4286261c723b5d4659c6c3b64e663db30c83974689839b904324776af9176dda" }, "downloads": -1, "filename": "pypugjs-5.1.0.tar.gz", "has_sig": false, "md5_digest": "78727ee0c6fe150dd0f8a326069efd3d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 30726, "upload_time": "2018-01-22T14:39:20", "url": "https://files.pythonhosted.org/packages/6b/49/ac21d42b2351203a9163b376ec3680959599a67b8dc0c9372f7a25423037/pypugjs-5.1.0.tar.gz" } ], "5.1.1": [ { "comment_text": "", "digests": { "md5": "98416516d952dc0183fc17c7281253c1", "sha256": "1f1fa0593312ada0f77b72ba9e544229483710b5620753faa29506e8c4951c50" }, "downloads": -1, "filename": "pypugjs-5.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "98416516d952dc0183fc17c7281253c1", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 38345, "upload_time": "2018-01-22T15:57:14", "url": "https://files.pythonhosted.org/packages/2d/42/b618ea41c92a437e8e72a347bc8857120a924a9cdf9b7658e17efec9f611/pypugjs-5.1.1-py2.py3-none-any.whl" } ], "5.1.2": [ { "comment_text": "", "digests": { "md5": "c7d3368e08036b12993c2078b3577c1e", "sha256": "f8cd111f66da9ca0e40b95fb205e6ec8df002ec82969497cf4fd5296a7d14785" }, "downloads": -1, "filename": "pypugjs-5.1.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c7d3368e08036b12993c2078b3577c1e", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 25241, "upload_time": "2018-01-25T14:01:19", "url": "https://files.pythonhosted.org/packages/86/e4/335460ebd3a4bec127315ee9cfd62a1f1a907776502838290c7d883b1c1d/pypugjs-5.1.2-py2.py3-none-any.whl" } ], "5.1.3": [ { "comment_text": "", "digests": { "md5": "e7227cd6b83e789f921983d8084b7714", "sha256": "ef92111f8aa5cde252a893af0fa2e340471a7d1c648eea7b6e580ca59ba448ed" }, "downloads": -1, "filename": "pypugjs-5.1.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e7227cd6b83e789f921983d8084b7714", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 25300, "upload_time": "2018-01-25T14:36:26", "url": "https://files.pythonhosted.org/packages/8f/22/87a7d48b8148cc32c38eb96ed49a310bb93a4469a2ac186e1adfc5f7c3ae/pypugjs-5.1.3-py2.py3-none-any.whl" } ], "5.1.4": [ { "comment_text": "", "digests": { "md5": "a866e8f92237f7f9f89bc785cb78f18c", "sha256": "96de2b106442caae7769275e44fe2314675345e6c3f3df141e6ba8b202c162ab" }, "downloads": -1, "filename": "pypugjs-5.1.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "a866e8f92237f7f9f89bc785cb78f18c", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 25298, "upload_time": "2018-01-25T15:01:04", "url": "https://files.pythonhosted.org/packages/d6/a0/08b3861254bc379d16add4f4a91507b37e86bcb221fd0c670e11404ce126/pypugjs-5.1.4-py2.py3-none-any.whl" } ], "5.1.5": [ { "comment_text": "", "digests": { "md5": "053c97a37a18cac79ec111743c8c6147", "sha256": "2f08eadbbf1170729a17bfc0eb2e29e7ddc8c5e7e19ac3eba447db800cffe912" }, "downloads": -1, "filename": "pypugjs-5.1.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "053c97a37a18cac79ec111743c8c6147", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 25302, "upload_time": "2018-01-25T21:50:26", "url": "https://files.pythonhosted.org/packages/89/c2/c31c893ec5d0ecf6a8ed6285acc65efe70cf714ce3ef8c37366f4d176bba/pypugjs-5.1.5-py2.py3-none-any.whl" } ], "5.2.0": [ { "comment_text": "", "digests": { "md5": "e7068307a748ce04dc18fff722a96c60", "sha256": "a520da0784d0cc02b929d1e772dff3bc166f8cb1fafec196723676b8d8781937" }, "downloads": -1, "filename": "pypugjs-5.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e7068307a748ce04dc18fff722a96c60", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 25301, "upload_time": "2018-01-26T10:13:25", "url": "https://files.pythonhosted.org/packages/8b/41/01ddf05a09834e65bf059354d37ca3db0d6a5fdf0509ce9cd807b84844d2/pypugjs-5.2.0-py2.py3-none-any.whl" } ], "5.3.0": [ { "comment_text": "", "digests": { "md5": "a7a315704dc8a04f5d2131f68aa35e3c", "sha256": "7325f9a455209fc8b2cebfd2a8610d4b8853d185b344f025a89659d2ceef3a2a" }, "downloads": -1, "filename": "pypugjs-5.3.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "a7a315704dc8a04f5d2131f68aa35e3c", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 37720, "upload_time": "2018-01-26T11:36:13", "url": "https://files.pythonhosted.org/packages/8d/96/23c33074dac9e1089bb0eda73ffd809d4c99fe9e1a99285d75899aeb07d4/pypugjs-5.3.0-py2.py3-none-any.whl" } ], "5.4.0": [ { "comment_text": "", "digests": { "md5": "2063623ccffa7fc35e6eb55f9c249d78", "sha256": "73e7690ab8dd7cd224d3ada226025cc80c90e12f15bdadb9da27ac88251059d9" }, "downloads": -1, "filename": "pypugjs-5.4.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "2063623ccffa7fc35e6eb55f9c249d78", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 37736, "upload_time": "2018-03-16T09:09:28", "url": "https://files.pythonhosted.org/packages/49/c3/a8aecfb79c0b4b2613c90e1a8dee3a371a268ffcc8d66280df8a6dad8998/pypugjs-5.4.0-py2.py3-none-any.whl" } ], "5.5.0": [ { "comment_text": "", "digests": { "md5": "5dfa247d228ddb45dde1ef000fee991b", "sha256": "15d432ace4447ed43722d8f5f1bf56cfb89ce47f073b6d80e85a17ed389798fc" }, "downloads": -1, "filename": "pypugjs-5.5.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "5dfa247d228ddb45dde1ef000fee991b", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 37977, "upload_time": "2018-03-23T13:44:00", "url": "https://files.pythonhosted.org/packages/a6/c5/cbfbee5c72e0473a76d1187f5c4a69b68d6867ed28235b499e98e3e2cfe1/pypugjs-5.5.0-py2.py3-none-any.whl" } ], "5.5.1": [ { "comment_text": "", "digests": { "md5": "5927c50ebbf9033165e1c765835e6de7", "sha256": "630d5f37c40595e52992d54243612563c7c5ff0919d64eb48b69720b9da7edf9" }, "downloads": -1, "filename": "pypugjs-5.5.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "5927c50ebbf9033165e1c765835e6de7", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 37981, "upload_time": "2018-04-09T19:48:05", "url": "https://files.pythonhosted.org/packages/2e/1c/45e1b0361a6ab9719e3b44fabc9ce8ff872180af7499c3e3a6eb1f7940f8/pypugjs-5.5.1-py2.py3-none-any.whl" } ], "5.6.0": [ { "comment_text": "", "digests": { "md5": "3f6ae3c9353d7bb9b5797ea770822c43", "sha256": "a8659b77bd8d925e365b3d0209e6171b7423cd0a1fb99ac279f8ad502b4f9ef9" }, "downloads": -1, "filename": "pypugjs-5.6.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "3f6ae3c9353d7bb9b5797ea770822c43", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 37995, "upload_time": "2018-04-10T08:12:34", "url": "https://files.pythonhosted.org/packages/32/47/c2893c931150af58b271f9f4f47ed111efd674c233004aa57773394931f8/pypugjs-5.6.0-py2.py3-none-any.whl" } ], "5.6.1": [ { "comment_text": "", "digests": { "md5": "bd7f4236756d97695e8f2fb8f04b9a16", "sha256": "568299a5a90b54f10e7f8cbab94eb504efb542cde8d1bae730c8a4143e668641" }, "downloads": -1, "filename": "pypugjs-5.6.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "bd7f4236756d97695e8f2fb8f04b9a16", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 37991, "upload_time": "2018-08-21T12:16:10", "url": "https://files.pythonhosted.org/packages/bd/c1/65a8508669d86b1e3db0cebe51dbaacdf8053dab0f27b2d9ae4afcb505c6/pypugjs-5.6.1-py2.py3-none-any.whl" } ], "5.7.0": [ { "comment_text": "", "digests": { "md5": "d4bf8d2622b37aa527e7f95c0da1b08f", "sha256": "380c63f41f5894a81653bfea112a5199a34130cc6c1e6f95f8d38dfe9f205fe6" }, "downloads": -1, "filename": "pypugjs-5.7.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "d4bf8d2622b37aa527e7f95c0da1b08f", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 38221, "upload_time": "2018-08-29T10:32:05", "url": "https://files.pythonhosted.org/packages/07/b0/d9cb1fabf7a56aa1b8d94c48e52f07df3eebc25f9f9e07231a0f06ea82bd/pypugjs-5.7.0-py2.py3-none-any.whl" } ], "5.7.1": [ { "comment_text": "", "digests": { "md5": "bc908fb9ae2f2dcf31655501970a3615", "sha256": "44259317c6a06e6719744eda1006199ee8b7c12335b2d2f26e8ef3358bc3313a" }, "downloads": -1, "filename": "pypugjs-5.7.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "bc908fb9ae2f2dcf31655501970a3615", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 38510, "upload_time": "2018-08-29T14:14:56", "url": "https://files.pythonhosted.org/packages/28/27/4fee6f5d8d4890e6f71b97677e72169e17c73b770652a7ee4af6019e3200/pypugjs-5.7.1-py2.py3-none-any.whl" } ], "5.7.2": [ { "comment_text": "", "digests": { "md5": "760e4ab7b56f589b4063cdc36fde42ee", "sha256": "0f5c6af1a1e9d5b747b0f43defb1bce8950810d9f884c147d8a9264cbf52f159" }, "downloads": -1, "filename": "pypugjs-5.7.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "760e4ab7b56f589b4063cdc36fde42ee", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 38504, "upload_time": "2018-09-12T17:18:02", "url": "https://files.pythonhosted.org/packages/ce/b9/38ce119d4b143d46713eb0138dd5fcb8723082420dc56b200accc6224065/pypugjs-5.7.2-py2.py3-none-any.whl" } ], "5.8.0": [ { "comment_text": "", "digests": { "md5": "b934e80279da5194c0f04ac58666ff62", "sha256": "8cfeb2cb53b8d1a1cda24f522deae9fe659891206667e1e2110c6b673b2b9932" }, "downloads": -1, "filename": "pypugjs-5.8.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b934e80279da5194c0f04ac58666ff62", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 36278, "upload_time": "2019-03-08T18:32:32", "url": "https://files.pythonhosted.org/packages/ee/f7/b2b494ef67f35e8db63bbac5e086dcfae52d38d43f23b129e612e912acb8/pypugjs-5.8.0-py2.py3-none-any.whl" } ], "5.8.1": [ { "comment_text": "", "digests": { "md5": "a9d5309be849e1af14fa26387ed817e0", "sha256": "a6da44ac31682d30e9a564f28c429ef93387bfba540a01c8227c4a5b4529b3bd" }, "downloads": -1, "filename": "pypugjs-5.8.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "a9d5309be849e1af14fa26387ed817e0", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 35824, "upload_time": "2019-04-29T11:39:43", "url": "https://files.pythonhosted.org/packages/20/78/a969b9cf920bf02c796241d26c80460ee1912fa9c81de39807e347099747/pypugjs-5.8.1-py2.py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a9d5309be849e1af14fa26387ed817e0", "sha256": "a6da44ac31682d30e9a564f28c429ef93387bfba540a01c8227c4a5b4529b3bd" }, "downloads": -1, "filename": "pypugjs-5.8.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "a9d5309be849e1af14fa26387ed817e0", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 35824, "upload_time": "2019-04-29T11:39:43", "url": "https://files.pythonhosted.org/packages/20/78/a969b9cf920bf02c796241d26c80460ee1912fa9c81de39807e347099747/pypugjs-5.8.1-py2.py3-none-any.whl" } ] }