lasso-coffee
v1.0.7
Published
Lasso.js plugin to support compilation of CoffeeScript templates
Downloads
4
Maintainers
Readme
lasso-coffee
Lasso.js plugin to support compilation of CoffeeScript dependencies.
Installation
npm install lasso-coffee --save
The lasso-coffee
plugin will then need to be registered as shown below before you can start adding CoffeeScript dependencies:
require('lasso').configure({
...
plugins: [
'lasso-coffee',
...
]
});
Basic Usage
browser.json
{
"dependencies": [
"./foo.coffee",
"./bar.coffee"
]
}
The lasso-coffee
plugin will concatenate all of the CoffeeScript dependencies targeted for the same bundle and pass that as input to the CoffeeScript renderer. Therefore, given the following contents of each file:
foo.coffee:
foo = 'foo'
bar.coffee:
bar = 'bar'
The output will be the following:
var foo = 'foo';
var bar = 'bar';