Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

broadway-handlebars

Package Overview
Dependencies
Maintainers
2
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

broadway-handlebars - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

10

index.js

@@ -162,11 +162,15 @@ var _ = require('lodash'),

var _render = function(view, data, callback) {
var template = templateCache[view];
var template = templateCache[view],
html = null,
err = null;
// render
try {
callback(null, template(data));
html = template(data);
}
catch (e) {
callback('Error in view - ' + view + ': ' + (e.message) + '\n' + (e.stack || ''));
err = 'Error in view - ' + view + ': ' + (e.message) + '\n' + (e.stack || '');
}
return _.isFunction(callback) ? callback(err, html) : null;
};

@@ -173,0 +177,0 @@

{
"name": "broadway-handlebars",
"version": "0.2.1",
"version": "0.2.2",
"main": "index",

@@ -5,0 +5,0 @@ "description": "Plugin for flatiron/broadway for rendering with the handlebars view engine.",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc