Skip to content

Latest commit

 

History

History
35 lines (20 loc) · 746 Bytes

README.rst

File metadata and controls

35 lines (20 loc) · 746 Bytes

A Django template tag to render noun icons from the totally sweet Noun Project!

http://mathburritos.org/misc/icons_for_github.png

Note

2015-7: This project may need updating, as it looks like the noun project API endpoints have changed.

Installation

  1. pip install django-noun-project or, from source, python setup.py install
  2. Add noun_project to your INSTALLED_APPS

Usage

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 %}