https://github.com/ixti/stylus-import-tree
import_tree() example for Stylus
https://github.com/ixti/stylus-import-tree
Last synced: 27 days ago
JSON representation
import_tree() example for Stylus
- Host: GitHub
- URL: https://github.com/ixti/stylus-import-tree
- Owner: ixti
- License: mit
- Created: 2012-06-12T09:55:26.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2013-08-16T21:29:28.000Z (almost 13 years ago)
- Last Synced: 2025-03-21T05:17:00.798Z (about 1 year ago)
- Language: JavaScript
- Size: 52.7 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Style import\_tree Proof Of Concept
===================================
This is a dummy exampe of `import_tree` implementation. Consider you have a
directory with files you need to import, instead of writing bunch of `@import`
statements in your stylus file, you might want to simply call `import_tree()`:
``` stylus
import_tree('./foobar');
// insted of:
// @import 'foobar/a'
// @import 'foobar/b'
// @import 'foobar/c/d'
```
**NOTICE** you can't flexibly control order of inclusions in this case. The only
way you can control the order in this example is filenames, imports are done in
alphabetical order. For total controll over what is included when and where,
use [Mincer][1], which will give you awesome cow power!
How to run
----------
npm install
node .
[1]: https://github.com/nodeca/mincer