Socket
Book a DemoInstallSign in
Socket

karma-slim-preprocessor-with-binary-option

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

karma-slim-preprocessor-with-binary-option

A Karma plugin. Compile slim files to html on the fly

latest
npmnpm
Version
0.0.5
Version published
Maintainers
1
Created
Source

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'
    }
  });
};

Keywords

karma

FAQs

Package last updated on 12 Sep 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts