Задать вопрос

Тел: +7 965 3737 888

537

Просмотров

0

Ответов

Coffeescript compilation

All I wanted was for one to one compilation of coffeescript to javascript.

This code is the minimum required for this.

There are two things to take into account:

The list method will use the list method on all finders that come before it in STATICFILES_FINDERS to find all the files that end with .coffee and will return the equivalent .js path with a storage class that knows how to compile the coffeescript.

The find method will use the find method on all finders that come before it in STATICFILES_FINDERS to locate the coffeescript file that is actually being requested.

It will then compile the coffeescript into a file in settings.CACHE_DIR before serving that file.

Вопрос полезен? Да0/Нет0
file_5166.py(3.5Кб)
None