Socket
Socket
Sign inDemoInstall

express-handlebars

Package Overview
Dependencies
0
Maintainers
1
Versions
54
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.1 to 0.0.2

lib/.express-handlebars.js.un~

5

lib/express-handlebars.js
module.exports = function(app, Handlebars) {
// *.hbs templates are rendered with Handlebars
app.register('hbs', Handlebars);
// different versions of express have differently-named methods for this.
// see https://github.com/visionmedia/express/commit/66f8ca52d6fc5ea567ebe3d85515595f097f42dc
var engineMethod = app.engine || app.register;
engineMethod.call(app, 'hbs', Handlebars);

@@ -5,0 +8,0 @@ // hook into express's native helpers function to register helpers

2

package.json
{
"name": "express-handlebars",
"version": "0.0.1",
"version": "0.0.2",
"description": "handlebars.js integration with express",

@@ -5,0 +5,0 @@ "keywords": ["handlebars", "express", "helpers", "dynamicHelpers", "templates"],

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc