🚀 Socket Launch Week 🚀 Day 4: Introducing Historical Analytics.Learn More
Socket
Sign inDemoInstall
Socket

haml-coffee-brunch

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

haml-coffee-brunch - npm Package Compare versions

Comparing version

to
0.1.2

18

index.js

@@ -13,2 +13,4 @@ 'use strict';

if (!opts.namespace) opts.namespace = 'window.JST';
this.options = opts;

@@ -23,7 +25,10 @@ }

return new Promise((resolve, reject) => {
let compiled;
// let compiled;
let template;
try {
compiled = hamlc.compile(params.data);
resolve(compiled);
// compiled = hamlc.compile(params.data);
// resolve(compiled);
template = hamlc.template(params.data, params.path, 'window.JST');
resolve(template);
} catch (error) {

@@ -37,6 +42,11 @@ reject(error);

HamlCoffeeCompiler.prototype.brunchPlugin = true;
HamlCoffeeCompiler.prototype.type = 'javascript';
// HamlCoffeeCompiler.prototype.type = 'javascript';
HamlCoffeeCompiler.prototype.type = 'template';
HamlCoffeeCompiler.prototype.extension = 'hamlc';
HamlCoffeeCompiler.prototype.pattern = /^.(?:hamlc|hamlcoffee)$/;
HamlCoffeeCompiler.prototype.pathReplace =/^.*templates\//;
HamlCoffeeCompiler.prototype.staticTargetExtension = 'jst';
module.exports = HamlCoffeeCompiler;
module.exports = HamlCoffeeCompiler;
{
"name": "haml-coffee-brunch",
"version": "0.1.1",
"version": "0.1.2",
"description": "Brunch.io plugin for haml coffee files",

@@ -9,2 +9,3 @@ "main": "index.js",

},
"main": "./index",
"files": ["index.js"],

@@ -11,0 +12,0 @@ "repository": {