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"
```
=================
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"
```
Metadata
Release files for gears-at-notation 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| gears-at-notation-0.2.tar.gz | 1.8 kB | Details |
Release files / gears-at-notation-0.2.tar.gz
| Download URL | gears-at-notation-0.2.tar.gz |
|---|---|
| Size | 1.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f48203006e9c3df53d0abad4d8d3e4a6f09af61b82334641ecfeda2dc0f6efa5
|
|
BLAKE2b-256 checksum How to use checksums |
848979791bbde0e7f4739ac70737e2876f4e07f69e70fa5b3d0279f4bd1ddf39
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |