broadway-handlebars
Advanced tools
Comparing version 0.1.7 to 0.1.8
@@ -158,6 +158,10 @@ var _ = require('lodash'), | ||
catch (e) { | ||
callback('Error in view - ' + view + ': ' + (e.stack || e)); | ||
callback('Error in view - ' + view + ': ' + (e.message) + '\n' + (e.stack || '')); | ||
} | ||
}; | ||
this.templates = function(callback) { | ||
viewResolver.all(callback); | ||
}; | ||
}; | ||
@@ -164,0 +168,0 @@ |
{ | ||
"name": "broadway-handlebars", | ||
"version": "0.1.7", | ||
"version": "0.1.8", | ||
"main": "index", | ||
@@ -5,0 +5,0 @@ "description": "Plugin for flatiron/broadway for rendering with the handlebars view engine.", |
@@ -12,2 +12,4 @@ var http = require('http'), | ||
var tests = ['render', 'templates']; | ||
app.render('index', { | ||
@@ -28,3 +30,19 @@ languages: { | ||
console.log(content); | ||
process.exit(); | ||
tests.splice(0,1); | ||
}); | ||
app.templates(function(err, dict) { | ||
console.log(dict); | ||
tests.splice(1,1); | ||
}); | ||
var checkExit = function() { | ||
if (tests.length == 0) { | ||
process.exit(); | ||
} else { | ||
process.nextTick(checkExit); | ||
} | ||
}; | ||
process.nextTick(checkExit); |
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
9527
260