1 | ;
|
2 |
|
3 | var coffee = require('coffee-script');
|
4 | var merge = require('merge');
|
5 |
|
6 | exports.name = 'coffee-script';
|
7 | exports.inputFormats = ['coffee', 'coffee-script'];
|
8 | exports.outputFormat = 'js';
|
9 |
|
10 | exports.render = function (src, options, locals) {
|
11 | // Bring the locals into the compile options.
|
12 | options = merge(options || {}, locals || {});
|
13 |
|
14 | return coffee.compile(src, options);
|
15 | }
|