A Django template tag to render noun icons from the totally sweet Noun Project!
2015-7: This project may need updating, as it looks like the noun project API endpoints have changed.
pip install django-noun-project
or, from source,python setup.py install
- Add
noun_project
to yourINSTALLED_APPS
Inside a template:
{% load noun_icon %}
then simply:
{% noun_icon "coffee" %}
To make a pretty coffee icon appear!
Examples:
{% noun_icon "coffee" width="50px" %} {% noun_icon "coffee" width="50px" height="200px" %} {% noun_icon "coffee" as coffee %}