https://github.com/evansd/django-staticfilesplus
Adds pre-processor support to Django's contrib.staticfiles
https://github.com/evansd/django-staticfilesplus
Last synced: 12 months ago
JSON representation
Adds pre-processor support to Django's contrib.staticfiles
- Host: GitHub
- URL: https://github.com/evansd/django-staticfilesplus
- Owner: evansd
- License: other
- Created: 2013-06-09T14:55:02.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2014-03-01T17:54:06.000Z (over 12 years ago)
- Last Synced: 2025-01-24T16:11:50.403Z (over 1 year ago)
- Language: Python
- Homepage: https://django-staticfilesplus.readthedocs.io/
- Size: 227 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
Django StaticfilesPlus
======================
A tiny library that adds asset pre-processor support to Django's `contrib.staticfiles`.
The bundled `contrib.staticfiles` does most of what I want from an asset manager, but not
quite all. Rather than replace it entirely with another asset manager, I wrote this little
hack to add the missing piece. Now assets that need pre-processing (like LESS stylesheets,
or Sprocketized JS files) get compiled dynamically in development and then written out as
static files for serving in production.
Features:
* Seamleess integration with `contrib.staticfiles`: Continue to use the ``static``
template tag and ``collectstatic`` command as normal.
* Ships with support for LESS stylesheets and Sprockets-like JavaScript concatenation and
minification.
* Very simple API for defining new pre-processors.
* Not a single line of my code needs to run in production: once you've run
``collectstatic``, its work is done.
Read the documentation: http://django-staticfilesplus.evans.io