skip to navigation
skip to content

Not Logged In

gears-at-notation 0.2

Alternative dependencies parser for gears

Gears @ notation
=================
Specify requirements using @require notation.

It is stricted notation. No attemt to determine file extention.
No need to depend on same filetype.

Usage
-----

If you use pure gears:
```python
environment.preprocessor.register('text/css', AtDirectivesProcessor.as_handler())
environment.preprocessor.register('application/javascript', AtDirectivesProcessor.as_handler())
```

For django:
```python
GEARS_PREPROCESSORS = {
    'text/css': 'gears_at_notation.processor.AtDirectivesProcessor',
    'application/javascript': 'gears_at_notation.processor.AtDirectivesProcessor',
}
```

Now you can specify dependencies in different way:
```
// file style.css
// @require "main.css"
// @require "application.less"
// @require "modules.styl"
```
 
File Type Py Version Uploaded on Size
gears-at-notation-0.2.tar.gz (md5) Source 2012-12-03 1KB
  • Downloads (All Versions):
  • 10 downloads in the last day
  • 36 downloads in the last week
  • 212 downloads in the last month