template-engine
Advanced tools
Comparing version 1.0.7 to 1.0.8
@@ -12,3 +12,3 @@ var Class = require('core').Class; | ||
this.Extends = PluginAbstract; | ||
this.initialize = function(config, appYaml){ | ||
@@ -20,3 +20,3 @@ var that = this; | ||
// Dodajemy do LESS-a nową funkcję zwracającą url na OCDNie | ||
// Dodajemy do LESS-a nową funkcję zwracającą url na OCDNie | ||
less.tree.functions.ocdnurl = function(path) { | ||
@@ -27,6 +27,6 @@ var url = that._getOcdnUrl(path.value); | ||
}; | ||
this.execute = function(data, params){ | ||
console.log(' -- LessCSS plugin execute'); | ||
var that = this; | ||
@@ -39,2 +39,8 @@ data = this._prepareArguments(data, params); | ||
console.warn(' -- ERROR: ' + err.message); | ||
var extract = err.extract; | ||
extract.forEach(function(line) { | ||
console.log(' -- ERROR: ' + line); | ||
}); | ||
that.dispatchEvent(new ErrorEvent(PluginAbstract.Event.ERROR, err, -31996, 'LessCSS internal error')); | ||
@@ -57,4 +63,4 @@ } else { | ||
}; | ||
function flatten(obj, includePrototype, into, prefix) { | ||
@@ -77,3 +83,3 @@ into = into || {}; | ||
} | ||
this._prepareArguments = function(data, args){ | ||
@@ -96,3 +102,3 @@ // console.log('LESS PARAMS -> ', args); | ||
}; | ||
}; | ||
@@ -99,0 +105,0 @@ |
{ | ||
"name": "template-engine", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "Engine that renders templates of any kind", | ||
@@ -5,0 +5,0 @@ "contributors": [ |
6061167
39668