Giter Site home page Giter Site logo

caoh / django-icons Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mbourqui/django-icons

0.0 1.0 0.0 81 KB

Icons for Django

Home Page: http://django-icons.readthedocs.io/en/latest/index.html

License: BSD 3-Clause "New" or "Revised" License

Python 88.36% HTML 11.64%

django-icons's Introduction

django-icons

Icons for Django

https://travis-ci.org/zostera/django-icons.svg?branch=master https://coveralls.io/repos/github/zostera/django-icons/badge.svg?branch=develop Latest PyPI version

Features

Use simple template tags to generate icons in your web application. Supports Font Awesome out of the box, easily adaptable for other icon libraries.

The basic usage is

{% load icons %}
{% icon 'edit' %}

Requirements

Django >= 1.11 and a matching Python version. Using Python 3 is strongly recommended.

Running the demo

You can run the small demo app that is part of the test suite. This requires Django, so you may have to pip install django in your environment. To run the demo, from the root of the project (where you can find manage.py, run:

python manage.py runserver

Running the tests

The test suite uses tox. Run the complete test suite like this:

tox

Run the tests only for the current environment like this:

python manage.py test

Origin

Our plans at Zostera for an icon tool originate in https://github.com/dyve/django-bootstrap3. We isolated this into a Font Awesome tool in https://github.com/zostera/django-fa. When using our own product, we felt that the icon tool provided little improvement over plain HTML. Also, Font Awesome's icon names did not match the the intended function of the icon. This is how we came to think of a library that

  • Took a limited number of arguments
  • Converted those arguments into an icon
  • Was able to support multiple icon libraries
  • And could easily be extended by users

This is how we came to write and use django-icons.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.