1 | /**
|
2 | * The CoffeeScript plugin
|
3 | */
|
4 | define('seajs/plugin-coffee', ['./plugin-base', 'coffee'], function(require) {
|
5 |
|
6 | var plugin = require('./plugin-base')
|
7 | var CoffeeScript = require('coffee')
|
8 |
|
9 |
|
10 | plugin.add({
|
11 | name: 'coffee',
|
12 |
|
13 | ext: ['.coffee'],
|
14 |
|
15 | fetch: function(url, callback) {
|
16 | CoffeeScript.load(url, callback)
|
17 | }
|
18 | })
|
19 |
|
20 | });
|
21 |
|