プロジェクト
GitHubで見る
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.
Web・アプリ開発計測したスター増加
- 24時間
- 0
- 7日間
- 0
- 15日間
- 0
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナル[!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.
Documentation
Documentation is available at https://django-static-precompiler.readthedocs.io.
Install
pip install django-static-precompiler
Use in templates
{% load compile_static %}
{% load static %}
<script src="{% static "path/to/script.coffee"|compile %}"></script>
<link rel="stylesheet" href="{% static "path/to/styles1.less"|compile %}" />
<link rel="stylesheet" href="{% static "path/to/styles2.scss"|compile %}" />
Use in 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 |
関連プロジェクトを探す
読み込み中…