Socket
Book a DemoInstallSign in
Socket

karma-slim-preprocessor

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

karma-slim-preprocessor

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

1.0.0
latest
Source
npmnpm
Version published
Weekly downloads
1.2K
-23.2%
Maintainers
1
Weekly downloads
 
Created
Source

karma-slim-preprocessor

Build Status

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.

Installation

npm install karma-slim-preprocessor --save-dev

Configuration

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

    slimPreprocessor: {
      // If slimrb is not in your PATH, you can specify where it is:
      slimrb: "/usr/local/slimrb",
      
      // You can pass additional command line options to slimrb:
      slimrbOption: '-l { "foosball": true }'
    },

    files: [
      '**/*.js',
      '**/*.slim',
    ]
  });
};

Keywords

karma

FAQs

Package last updated on 19 Oct 2017

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.