Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andreyfedoseev/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.
https://github.com/andreyfedoseev/django-static-precompiler
babel coffeescript django handlebars lesscss livescript python sass scss stylus
Last synced: 2 days ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/andreyfedoseev/django-static-precompiler
- Owner: andreyfedoseev
- License: other
- Created: 2013-10-05T16:34:19.000Z (over 11 years ago)
- Default Branch: main
- Last Pushed: 2024-10-05T09:24:01.000Z (4 months ago)
- Last Synced: 2025-01-24T19:06:46.688Z (9 days ago)
- Topics: babel, coffeescript, django, handlebars, lesscss, livescript, python, sass, scss, stylus
- Language: Python
- Homepage:
- Size: 553 KB
- Stars: 221
- Watchers: 10
- Forks: 60
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- License: LICENSE
- Authors: AUTHORS
Awesome Lists containing this project
README
> [!IMPORTANT]
> **django-static-precomiler** is looking for a new maintainer! See https://github.com/andreyfedoseev/django-static-precompiler/issues/170 for details.## 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.[![Build Status](https://github.com/andreyfedoseev/django-static-precompiler/workflows/CI/badge.svg)](https://github.com/andreyfedoseev/django-static-precompiler/actions?query=workflow%3ACI)
[![Documentation](https://readthedocs.org/projects/django-static-precompiler/badge/)](https://django-static-precompiler.readthedocs.io/)### Documentation
Documentation is available at
.### Install
```sh
pip install django-static-precompiler
```### Use in templates
```html
{% load compile_static %}
{% load static %}```
### Use in Python
```python
>>> from static_precompiler.utils import compile_static
>>> compile_static("styles.scss")
"COMPILED/styles.css"
```### Python & Django compatibility
| django-static-precompiler | Python | Django |
|---------------------------|--------|------------|
| 2.2+ | 3.6+ | 2.0 - 4.1 |
| 2.1 | 3.6+ | 2.0 - 4.0 |
| 2.0 | 3.4+ | 1.9 - 3.2 |
| 1.7-1.8 | 2.7+ | 1.7 - 2.2 |
| 1.6 | 2.7+ | 1.7 - 1.11 |
| 1.5 | 2.7+ | 1.6 - 1.10 |
| 1.1-1.4 | 2.7+ | 1.6 - 1.9 |
| 1.0 | 2.7+ | 1.6 - 1.7 |