Specify requirements using @require notation
Python
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
gears_at_notation
.gitignore
README.md
setup.py

README.md

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:

environment.preprocessor.register('text/css', AtDirectivesProcessor.as_handler())
environment.preprocessor.register('application/javascript', AtDirectivesProcessor.as_handler())

For django:

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"