Skip to content

ojdx/karma-jade-preprocessor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

karma-jade-preprocessor

Preprocessor to compile Jade templates on the fly.

Installation

The easiest way is to keep karma-jade-preprocessor as a devDependency in your package.json.

{
  "devDependencies": {
    "karma": "~0.10",
    "karma-jade-preprocessor": "~0.1"
  }
}

You can simple do it by:

npm install karma-jade-preprocessor --save-dev

Configuration

Following code shows the default configuration...

// karma.conf.js
module.exports = function(config) {
  config.set({
    preprocessors: {
      '**/*.jade': ['jade']
    }
  });
};

Chaining preprocessors

The jade preprocessor can be used in conjunction with others (eg. karma-ng-html2js-preprocessor). Simply include it in an array that specifies the chain of processors.

// karma.conf.js
module.exports = function(config) {
  config.set({
    preprocessors: {
      '**/*.jade': ['jade', 'ng-html2js']
    }
  });
};

For more information on Karma see the homepage.

About

karma jade preprocessor

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%