{ "info": { "author": "Sebastian Kreft - Deezer", "author_email": "skreft@deezer.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: Unix", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Topic :: Software Development" ], "description": "Template Remover\n================\n\n.. image:: https://badge.fury.io/py/template-remover.png\n :target: http://badge.fury.io/py/template-remover\n\n.. image:: https://travis-ci.org/deezer/template-remover.png?branch=master\n :target: https://travis-ci.org/deezer/template-remover\n\n.. image:: https://coveralls.io/repos/deezer/template-remover/badge.png?branch=master\n :target: https://coveralls.io/r/deezer/template-remover?branch=master\n\n\nTemplate remover is a tool to remove the PHP and Jinja markup from HTML files.\n\nMotivation\n----------\n\nMany tools, like html tidy, are designed to parse and analyze html files,\nhowever they do not play well when there is language markup. This projects aims\nto be a simple way of getting rid of those markups.\n\nLimitations\n-----------\n\ntemplate_remover is based on regular expressions. This means that there are some\nedge cases that cannot be captured with this method. Although we believe those\ncases are too contrived, and probably should be avoided as many development\ntools will fail as well.\n\nOne example that won't work is the following:::\n\n \" ?>\n\nThe reason it does not work is because when the method sees the first '?>'\n(the one inside the string), it thinks it's a closing tag.\n\n\nExample use\n-----------\n\nBelow are example of how template_remover.py is used::\n\n $ remove_template.py filename.html\n $ remove_template.py filename.html | tidy -qe\n\n\nInstallation\n------------\n\nYou can install, upgrade or uninstall template-remover with these commands::\n\n $ pip install template-remover\n $ pip install --upgrade template-remover\n $ pip uninstall template-remover\n\nPython Versions\n---------------\n\nPython 2.7 is officially supported, 3.2, 3.3 and 3.4 should also work.\n\nDevelopment\n-----------\n\nHelp for this project is more than welcomed, so feel free to create an issue or\nto send a pull request via http://github.com/deezer/template-remover.\n\nTests are run using nose, either with::\n\n $ python -R setup.py nosetests\n $ nosetests\n\nUse the tool `git-lint `_ before any commit, so\nerrors and style problems are caught early.\n\nTODOS and Possible Features\n---------------------------\n\n* Support more template engines and languages (Smarty, ASP, JSP, etc).\n\n\nChangelog\n=========\n\nv0.1 (2014-05-07)\n-------------------\n\n* Initial commit.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/deezer/template-remover", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "template-remover", "package_url": "https://pypi.org/project/template-remover/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/template-remover/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/deezer/template-remover" }, "release_url": "https://pypi.org/project/template-remover/0.1.9/", "requires_dist": null, "requires_python": null, "summary": "Remove the template markup from html files", "version": "0.1.9" }, "last_serial": 1241348, "releases": { "0.1.5": [ { "comment_text": "", "digests": { "md5": "9ef8c7753c03f95f486c283455182e11", "sha256": "7f231bb5da1733964d4caa396787a8d573d8407978216a2dff16782c552402e8" }, "downloads": -1, "filename": "template-remover-0.1.5.tar.gz", "has_sig": false, "md5_digest": "9ef8c7753c03f95f486c283455182e11", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6597, "upload_time": "2014-05-07T16:35:11", "url": "https://files.pythonhosted.org/packages/21/df/9fa0ddbecb9b3cd6caaab0bc83c2e94eaf1104c6244d7b889d107f3ee4ba/template-remover-0.1.5.tar.gz" } ], "0.1.6": [ { "comment_text": "", "digests": { "md5": "bc2f73d7efc1fb02c305a0cebbc37b79", "sha256": "d2e568e22fc9960549547a285907a4a12389b76b097e860b0df20423ddd34869" }, "downloads": -1, "filename": "template-remover-0.1.6.tar.gz", "has_sig": false, "md5_digest": "bc2f73d7efc1fb02c305a0cebbc37b79", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6709, "upload_time": "2014-05-08T08:43:03", "url": "https://files.pythonhosted.org/packages/6f/f9/588f2a1bfec5b0ecf43556b1dc0b2f01483c319a1dbcceb1c0a0e8a6508e/template-remover-0.1.6.tar.gz" } ], "0.1.7": [ { "comment_text": "", "digests": { "md5": "d23eaf44a75cb19d3e2c4a80484c3a2f", "sha256": "bdd5566478406b4dfa9946816f236dd9f9b6c3b45de2971a129112c4fd50bfad" }, "downloads": -1, "filename": "template-remover-0.1.7.tar.gz", "has_sig": false, "md5_digest": "d23eaf44a75cb19d3e2c4a80484c3a2f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7130, "upload_time": "2014-08-12T13:40:53", "url": "https://files.pythonhosted.org/packages/ae/f6/97d84808d860bcf4e8acbbd8ce9832ad2b853abddd5e8718971e14a1ff13/template-remover-0.1.7.tar.gz" } ], "0.1.8": [ { "comment_text": "", "digests": { "md5": "653ce24ab018d6302c5af9d634edfdcb", "sha256": "c17b2ee1dad4831c1a568f02d844a88fddc91c964d18e0678fc97efcd0d4532a" }, "downloads": -1, "filename": "template-remover-0.1.8.tar.gz", "has_sig": false, "md5_digest": "653ce24ab018d6302c5af9d634edfdcb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7093, "upload_time": "2014-09-07T22:15:07", "url": "https://files.pythonhosted.org/packages/ee/4e/6906a4bd0a438b004b0d75c77190a4932647859c95c144219ea0afc2626e/template-remover-0.1.8.tar.gz" } ], "0.1.9": [ { "comment_text": "", "digests": { "md5": "abb32d7b4948758068f76ee6e2d2c2d7", "sha256": "480f1ce63f56affac1edb29356afcca1260e8409cd928fcf9438fc149df5ff41" }, "downloads": -1, "filename": "template-remover-0.1.9.tar.gz", "has_sig": false, "md5_digest": "abb32d7b4948758068f76ee6e2d2c2d7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7139, "upload_time": "2014-09-29T08:21:15", "url": "https://files.pythonhosted.org/packages/34/89/e440ff92cd0de37dbd7d7660fe75bb29e8674dae56bd2e20ab2ef3e377c8/template-remover-0.1.9.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "abb32d7b4948758068f76ee6e2d2c2d7", "sha256": "480f1ce63f56affac1edb29356afcca1260e8409cd928fcf9438fc149df5ff41" }, "downloads": -1, "filename": "template-remover-0.1.9.tar.gz", "has_sig": false, "md5_digest": "abb32d7b4948758068f76ee6e2d2c2d7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7139, "upload_time": "2014-09-29T08:21:15", "url": "https://files.pythonhosted.org/packages/34/89/e440ff92cd0de37dbd7d7660fe75bb29e8674dae56bd2e20ab2ef3e377c8/template-remover-0.1.9.tar.gz" } ] }