django_压缩器过滤器编译咖啡脚本
coffee-compressor-compiler的Python项目详细描述
咖啡压缩机编译器[构建状态](https://travis-ci.org/juvenald1228/coffee-compressor-compiler.png?branch=master)(https://travis ci.org/juvenal1228/coffee compressor compiler)
用途
----
此工具用作[django compressor]的扩展(https://github.com/jezdez/django_compressor)
it precompiles[coffee script](http://coffeescript.org/)
-与平台无关的
-不需要安装node.js包
-100%测试覆盖率
-[pep 8](http://www.python.org/dev/peps/pep-0008/)符合性
-[semver](http://semver.org/)符合性
咖啡压缩机编译器`
或克隆最新的源代码
cd咖啡压缩机编译器
python setup.py install
还必须安装[node.js](http://nodejs.org/)或[pyv8](https://code.google.com/p/pyv8/)
node.js的版本可以在[这里](http://nodejs.org/download/)
)
```
>然后,在django模板中嵌入咖啡脚本模板,如
``html+django
{%load staticfiles%}
{%load compress%}
{%compress js%}
<;script type=“text/coffeescript”src=“{%static”app/main.coffee%}”>;
<;script type=“text/coffeescript”>;
console.log“你好!”
提醒“你好!”
<;/script>;
{%endcompress%}
```
用途
----
此工具用作[django compressor]的扩展(https://github.com/jezdez/django_compressor)
it precompiles[coffee script](http://coffeescript.org/)
-与平台无关的
-不需要安装node.js包
-100%测试覆盖率
-[pep 8](http://www.python.org/dev/peps/pep-0008/)符合性
-[semver](http://semver.org/)符合性
咖啡压缩机编译器`
或克隆最新的源代码
python setup.py install
还必须安装[node.js](http://nodejs.org/)或[pyv8](https://code.google.com/p/pyv8/)
node.js的版本可以在[这里](http://nodejs.org/download/)
)
```
>然后,在django模板中嵌入咖啡脚本模板,如
``html+django
{%load staticfiles%}
{%load compress%}
{%compress js%}
<;script type=“text/coffeescript”src=“{%static”app/main.coffee%}”>;
<;script type=“text/coffeescript”>;
console.log“你好!”
提醒“你好!”
<;/script>;
{%endcompress%}
```