karma-slim-preprocessor-with-binary-option
v0.0.5
Published
A Karma plugin. Compile slim files to html on the fly
Downloads
3
Maintainers
Readme
karma-slim-preprocessor
Preprocessor for converting slim files to html templates.
It requires the slimrb binary to be on your path, which will be present if slim is installed by bundler.
npm install karma-slim-preprocessor --save-dev
Configuration
// karma.conf.js
module.exports = function(config) {
config.set({
preprocessors: {
'**/*.slim': ['slim']
},
files: [
'**/*.js',
'**/*.slim',
],
slimPreprocessor: {
// provide the location of a slimrb binary by uncommenting the next line.
// slimrb: '/usr/local/bin/slimrb'
}
});
};