{ "info": { "author": "Jonas Drotleff", "author_email": "j.drotleff@desk-lab.de", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Framework :: Django", "Framework :: Django :: 2.0", "Framework :: Django :: 2.1", "Framework :: Django :: 2.2", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "# Django Feather\n\nA simple Tag (`{% icon \"name\" %}`) to implement [Feather Icons](https://feathericons.com) in Django.\n\n## Install\nInstall `django-feather` using `pip` and put it into your `INSTALLED_APPS`:\n```bash\npip install django-feather\n``` \n`settings.py`:\n```python\nINSTALLED_APPS = [\n # ...\n 'django_feather',\n # ...\n]\n```\n\n## Usage\nAfter installation, the tag can be used just like any other tag:\n\n```djangotemplate\n{% load icon %}\n\n
Using a string {% icon \"coffee\" class=\"css-class\" height=\"8\" width=\"8\" %}
\nUsing a variable {% icon self.icon class=\"css-class\" height=\"8\" width=\"8\" %}
\n\n```\n\nThe `icon` tag will simply take the SVG source from the Feather project,\napply additional attributes and return the SVG tag.\n\n## Performance\n`django-feather` does not read the `.svg` files each time an icon is rendered.\nInstead, all the icons are written to a `.py` file upon build, just like the JavaScript\nlibrary. \nHowever, other than the JavaScript library, icons are rendered on the server side.\nThis avoids having to call `feather.replace()` after the page has loaded. \n\n## License\nFeather is licensed under the [MIT License](https://github.com/colebemis/feather/blob/master/LICENSE).\n\n`django-feather` is licensed under the Apache License, Version 2.0:\n\n Copyright 2019 Jonas Drotleff