django-static-precompiler

by andreyfedoseev

Django Static Precompiler provides template tags and filters to compile CoffeeScript, LiveScript, SA...

201 Stars 52 Forks Last release: over 2 years ago (1.8.2) Other 365 Commits 26 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:


Django Static Precompiler


Django Static Precompiler provides template tags and filters to compile CoffeeScript, LiveScript, SASS / SCSS, LESS, Stylus, Babel and Handlebars. It works with both inline code and external files.

.. image:: https://circleci.com/gh/andreyfedoseev/django-static-precompiler.svg?style=shield :target: https://circleci.com/gh/andreyfedoseev/django-static-precompiler :alt: Build Status

.. image:: https://codecov.io/github/andreyfedoseev/django-static-precompiler/coverage.svg?branch=master :target: https://codecov.io/github/andreyfedoseev/django-static-precompiler?branch=master :alt: Code Coverage

.. image:: https://codeclimate.com/github/andreyfedoseev/django-static-precompiler/badges/gpa.svg :target: https://codeclimate.com/github/andreyfedoseev/django-static-precompiler :alt: Code Climate

.. image:: https://readthedocs.org/projects/django-static-precompiler/badge/ :target: https://django-static-precompiler.readthedocs.io/ :alt: Documentation

.. image:: https://badges.gitter.im/Join Chat.svg :target: https://gitter.im/andreyfedoseev/django-static-precompiler?utmsource=badge&utmmedium=badge&utmcampaign=pr-badge&utmcontent=badge :alt: Gitter

Documentation

Documentation is available at

http://django-static-precompiler.readthedocs.io 
_.

Install

.. code-block:: sh

pip install django-static-precompiler

Use in templates

.. code-block:: django

{% load compile_static %} {% load static %}

Use in Python

.. code-block:: python

>>> from static_precompiler.utils import compile_static
>>> compile_static("styles.scss")
"COMPILED/styles.css"

Django compatibility

========================= ==== ==== ==== ==== ==== ==== ==== django-static-precompiler Django


version 2.x 1.11 1.10 1.9 1.8 1.7 1.6 ========================= ==== ==== ==== ==== ==== ==== ==== 1.7+ + + + + + + 1.6 + + + + + 1.5 + + + + + 1.1-1.4 + + + + 1.0 + + ========================= ==== ==== ==== ==== ==== ==== ====

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.