broadway-handlebars
Advanced tools
Comparing version 0.4.5 to 0.4.6
11
index.js
@@ -9,2 +9,4 @@ // var _ = { | ||
var _ = require('lodash'); | ||
var Minimize = require('minimize') | ||
var minimize = new Minimize(); | ||
var handlebars = require('handlebars'); // parens will prevent browserify from packaging. | ||
@@ -206,3 +208,10 @@ var defaultViewResolver = (typeof(window) === 'undefined') ? require('./viewresolver') : null; | ||
return typeof(callback) === 'function' ? callback(err, html) : null; | ||
if (options.minify) { | ||
minimize.parse(html, function (error, data) { | ||
return typeof(callback) === 'function' ? callback(error, data) : null; | ||
}); | ||
} else { | ||
return typeof(callback) === 'function' ? callback(err, html) : null; | ||
} | ||
}; | ||
@@ -209,0 +218,0 @@ |
{ | ||
"name": "broadway-handlebars", | ||
"version": "0.4.5", | ||
"version": "0.4.6", | ||
"main": "index", | ||
@@ -38,6 +38,7 @@ "description": "Plugin for flatiron/broadway for rendering with the handlebars view engine.", | ||
"dependencies": { | ||
"async": "0.2.9", | ||
"findit": "0.1.2", | ||
"async": "0.2.9", | ||
"handlebars": "~1.3.0", | ||
"lodash": "~2.4.1", | ||
"handlebars": "~1.3.0" | ||
"minimize": "^1.4.1" | ||
}, | ||
@@ -44,0 +45,0 @@ "devDependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12845
334
5
+ Addedminimize@^1.4.1
+ Addedansi-regex@2.1.1(transitive)
+ Addedargh@0.1.4(transitive)
+ Addedasync@1.5.2(transitive)
+ Addedcli-color@1.1.0(transitive)
+ Addedcolor@0.8.0(transitive)
+ Addedcolor-convert@0.5.3(transitive)
+ Addedcolor-name@1.1.4(transitive)
+ Addedcolor-string@0.3.0(transitive)
+ Addedcolornames@0.0.2(transitive)
+ Addedcolorspace@1.0.1(transitive)
+ Addedcore-util-is@1.0.3(transitive)
+ Addedd@0.1.11.0.2(transitive)
+ Addeddiagnostics@1.0.1(transitive)
+ Addeddom-serializer@0.2.2(transitive)
+ Addeddomelementtype@1.3.12.3.0(transitive)
+ Addeddomhandler@2.4.2(transitive)
+ Addeddomutils@1.7.0(transitive)
+ Addedemits@3.0.0(transitive)
+ Addedenabled@1.0.2(transitive)
+ Addedentities@1.1.22.2.0(transitive)
+ Addedenv-variable@0.0.6(transitive)
+ Addedes5-ext@0.10.64(transitive)
+ Addedes6-iterator@0.1.32.0.3(transitive)
+ Addedes6-symbol@2.0.13.1.4(transitive)
+ Addedes6-weak-map@0.1.4(transitive)
+ Addedesniff@2.0.1(transitive)
+ Addedevent-emitter@0.3.5(transitive)
+ Addedext@1.7.0(transitive)
+ Addedhtmlparser2@3.9.2(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedisarray@1.0.0(transitive)
+ Addedkuler@0.0.0(transitive)
+ Addedlru-queue@0.1.0(transitive)
+ Addedmemoizee@0.3.10(transitive)
+ Addedminimize@1.8.1(transitive)
+ Addednext-tick@0.2.21.1.0(transitive)
+ Addednode-uuid@1.4.8(transitive)
+ Addedprocess-nextick-args@2.0.1(transitive)
+ Addedreadable-stream@2.3.8(transitive)
+ Addedsafe-buffer@5.1.2(transitive)
+ Addedstring_decoder@1.1.1(transitive)
+ Addedtext-hex@0.0.0(transitive)
+ Addedtimers-ext@0.1.8(transitive)
+ Addedtype@2.7.3(transitive)
+ Addedutil-deprecate@1.0.2(transitive)