dsp

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.

Showing:

Popularity

Downloads/wk

0

GitHub Stars

209

Maintenance

Last Commit

8mos ago

Contributors

19

Package

Dependencies

0

License

Categories

Readme


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?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge :alt: Gitter

Documentation

Documentation is available at http://django-static-precompiler.readthedocs.io <http://django-static-precompiler.readthedocs.io/en/stable/>_.

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 + + ========================= ==== ==== ==== ==== ==== ==== ==== ====

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial