Need help with django-static-precompiler?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

andreyfedoseev
207 Stars 55 Forks Other 381 Commits 8 Opened issues

Description

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.

Services available

!
?

Need anything else?

Contributors list


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://github.com/andreyfedoseev/django-static-precompiler/workflows/CI/badge.svg :target: https://github.com/andreyfedoseev/django-static-precompiler/actions?query=workflow%3ACI :alt: Build Status

.. 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"

Python compatibility

Python 3.5+ is required.

Django compatibility

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


version 3.x 2.x 1.11 1.10 1.9 1.8 1.7 1.6 ========================= ==== ==== ==== ==== ==== ==== ==== ==== 2.0+ + + + + + 1.7-1.8 + + + + + + 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.