Skip to main content

Alternative dependencies parser for gears

Project description

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"
```

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gears-at-notation-0.2.tar.gz (1.8 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page