Coffee Compressor Compiler
=========================
[](https://travis-ci.org/Juvenal1228/coffee-compressor-compiler)
Purpose
-------
This tool is meant to be used as an extension to [django-compressor](https://github.com/jezdez/django_compressor)
It precompiles [coffee-script](http://coffeescript.org/)
Features
--------
- platform independent
- no need to install node.js packages
- 100% test coverage
- [PEP 8](http://www.python.org/dev/peps/pep-0008/) compliance
- [semver](http://semver.org/) compliance
Installing
----------
Install with pip/easy_install from the pypi
`pip install coffee-compressor-compiler`
or clone the latest source
git clone https://github.com/Juvenal1228/coffee-compressor-compiler.git
cd coffee-compressor-compiler
python setup.py install
You must also install [node.js](http://nodejs.org/) or [PyV8](https://code.google.com/p/pyv8/)
The latest versions of node.js can be found [here](http://nodejs.org/download/)
Using
-----
Using this tool is as simple as installing it and adding it to the `COMPRESS_PRECOMPILERS` django setting
```python
COMPRESS_PRECOMPILERS = (
('text/coffeescript', 'coffeecompressorcompiler.filter.CoffeeScriptCompiler'),
)
```
Then, in your django templates you can embed coffee-script templates like so
```html+django
{% load staticfiles %}
{% load compress %}
{% compress js %}
<script type="text/coffeescript" src="{% static 'app/main.coffee' %}" ></script>
<script type="text/coffeescript">
console.log 'Hello!'
alert 'Hello!'
</script>
{% endcompress %}
```
=========================
[](https://travis-ci.org/Juvenal1228/coffee-compressor-compiler)
Purpose
-------
This tool is meant to be used as an extension to [django-compressor](https://github.com/jezdez/django_compressor)
It precompiles [coffee-script](http://coffeescript.org/)
Features
--------
- platform independent
- no need to install node.js packages
- 100% test coverage
- [PEP 8](http://www.python.org/dev/peps/pep-0008/) compliance
- [semver](http://semver.org/) compliance
Installing
----------
Install with pip/easy_install from the pypi
`pip install coffee-compressor-compiler`
or clone the latest source
git clone https://github.com/Juvenal1228/coffee-compressor-compiler.git
cd coffee-compressor-compiler
python setup.py install
You must also install [node.js](http://nodejs.org/) or [PyV8](https://code.google.com/p/pyv8/)
The latest versions of node.js can be found [here](http://nodejs.org/download/)
Using
-----
Using this tool is as simple as installing it and adding it to the `COMPRESS_PRECOMPILERS` django setting
```python
COMPRESS_PRECOMPILERS = (
('text/coffeescript', 'coffeecompressorcompiler.filter.CoffeeScriptCompiler'),
)
```
Then, in your django templates you can embed coffee-script templates like so
```html+django
{% load staticfiles %}
{% load compress %}
{% compress js %}
<script type="text/coffeescript" src="{% static 'app/main.coffee' %}" ></script>
<script type="text/coffeescript">
console.log 'Hello!'
alert 'Hello!'
</script>
{% endcompress %}
```
Metadata
Release files for coffee-compressor-compiler 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| coffee-compressor-compiler-0.2.0.tar.gz | 51.7 kB | Without provenance | Details |
Release files / coffee-compressor-compiler-0.2.0.tar.gz
| Download URL | coffee-compressor-compiler-0.2.0.tar.gz |
|---|---|
| Size | 51.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
148e5825c429601fc128b39925b3be027fa87568152768ab0cd6edf06b34e1d2
|
|
BLAKE2b-256 checksum How to use checksums |
2e815c576d9684f34180a8aa13f963fbc54c793dc554f214806275921df29e70
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for coffee-compressor-compiler 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.