https://github.com/caseywebdev/cogs-transformer-directives
A directive transformer for Cogs.
https://github.com/caseywebdev/cogs-transformer-directives
Last synced: over 1 year ago
JSON representation
A directive transformer for Cogs.
- Host: GitHub
- URL: https://github.com/caseywebdev/cogs-transformer-directives
- Owner: caseywebdev
- License: mit
- Created: 2015-02-06T02:26:13.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2018-01-20T13:20:52.000Z (over 8 years ago)
- Last Synced: 2024-05-01T23:13:04.861Z (about 2 years ago)
- Language: JavaScript
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# cogs-transformer-directives
A directives transformer for [Cogs].
[![Build Status]](http://travis-ci.org/caseywebdev/cogs-transformer-directives)
Extract `require` and `link` directives from a file's initial comments.
In the following example, the file itself will be proceeded by every file in the
templates directory.
```js
//= requireself
//= require ./templates/**/*
var foo = 'bar';
```
In this example, the file will be prepended with `normalize.css`.
```css
/*
= require bower_components/normalize/normalize.css
*/
.foo {
color: blue;
}
```
[Cogs]: https://github.com/caseywebdev/cogs
[Build Status]: https://secure.travis-ci.org/caseywebdev/cogs-transformer-directives.png