Simple asset compilation middleware for Connect and Express.
Note: This module are still in flux. If you plan on using this right now it might be wise to include the exact version number, as some parts of the API might change.
To install Igneous, just use npm:
npm install igneous
Igneous uses a simple configuration method to define groups of assets—called "flows"—along with some pre/post-processing options:
var igneous = ;var igneous_middleware =
After the middleware is configured, it just needs to be used:
var express = ;express;
These templates will be made available on the
jst_namespace, with each template being associated with the string used for its path. For example, to access the template 'test1.jst' from above:
templates'test1' test: 'My radical template data' ;
For more usage details, take a look at the examples directory!
Igneous can be configured to run in a variety of ways. Some options, such as
root, are set globally, while other options, such as
route are set per flow. Other options, like
minify, may be set globally and overriden on a per-flow basis.
['css', 'less', 'sass', 'scss']for a type of
You can run Igenous' tests with the command
npm test. These tests require Mocha to run.
In no specific order:
Copyright © 2012 Timothy Kempf
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.