Compiler plugin to use Django Asset Pipeline package with Compass
Project description
## Django Pipeline Compass Compiler
Compiler class to use with Django Asset Pipeline package to compile Compass. It uses the official compass gem so you have to install it first:
```shell
$ sudo gem install compass
```
### Installation
The installation is as a `pip` regular package. Remember you have to install [Django Pipeline](https://github.com/cyberdelia/django-pipeline) first since the compiler works as a plugin for it. Once you have it:
```bash
# from PyPi
$ pip install django-pipeline-compass-compiler
# or from Github
$ pip install git+https://github.com/javivelasco/django-pipeline-compass-compiler.git
```
### Usage
In your `settings.py` you should specify the location of your compass compiler binary installed with RubyGems. As an option, you can give extra arguments to the compiler just as you'd do it when compiling from the command line. Also, you have to tell Pipeline to use the compiler. An example:
```python
PIPELINE_COMPASS_BINARY = '/usr/local/bin/compass' # default: '/usr/bin/env compass'
PIPELINE_COMPASS_ARGUMENTS = '-c path/to/config.rb' # default: ''
PIPELINE_COMPILERS = ('pipeline_compass.compass.CompassCompiler')
```
### About
I've created and updated this package to reuse it in my future projects, but is hardly based in [this](https://github.com/mila-labs/django-pipeline-compass-rubygem) package. The main difference is that here the source is compiled only if there were no changes from last compiling.
Compiler class to use with Django Asset Pipeline package to compile Compass. It uses the official compass gem so you have to install it first:
```shell
$ sudo gem install compass
```
### Installation
The installation is as a `pip` regular package. Remember you have to install [Django Pipeline](https://github.com/cyberdelia/django-pipeline) first since the compiler works as a plugin for it. Once you have it:
```bash
# from PyPi
$ pip install django-pipeline-compass-compiler
# or from Github
$ pip install git+https://github.com/javivelasco/django-pipeline-compass-compiler.git
```
### Usage
In your `settings.py` you should specify the location of your compass compiler binary installed with RubyGems. As an option, you can give extra arguments to the compiler just as you'd do it when compiling from the command line. Also, you have to tell Pipeline to use the compiler. An example:
```python
PIPELINE_COMPASS_BINARY = '/usr/local/bin/compass' # default: '/usr/bin/env compass'
PIPELINE_COMPASS_ARGUMENTS = '-c path/to/config.rb' # default: ''
PIPELINE_COMPILERS = ('pipeline_compass.compass.CompassCompiler')
```
### About
I've created and updated this package to reuse it in my future projects, but is hardly based in [this](https://github.com/mila-labs/django-pipeline-compass-rubygem) package. The main difference is that here the source is compiled only if there were no changes from last compiling.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for django-pipeline-compass-compiler-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d2ea16a85967e2c97e96b4f24326294f0f4898cf97d67a977e72fcfd2e9be8c |
|
MD5 | 10f9a7f1e1a71ffc39288289c90830bc |
|
BLAKE2b-256 | d96046716dba5e1b3081ebeb720050aab5d8ee4f2c7a97ac593f961f1eccd0c5 |