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

bogart-handlebars

Package Overview
Dependencies
Maintainers
3
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bogart-handlebars - npm Package Compare versions

Comparing version 0.9.4 to 0.10.1

16

lib/bogart_handlebars.js
var _ = require('underscore');
var Handlebars = require('handlebars');
require('handlebars-layouts')(Handlebars);
var layouts = require('handlebars-layouts');

@@ -16,2 +16,15 @@ var handlebarsLoadTree = require('handlebars-load-tree');

layouts.register(Handlebars);
// Add convence helpers for content calls
Handlebars.registerHelper('replace', function(name, options) {
return Handlebars.helpers['content'].call(this, name, _.extend(options, { hash: { mode: 'replace' } } ));
});
Handlebars.registerHelper('append', function(name, options) {
return Handlebars.helpers['content'].call(this, name, _.extend(options, { hash: { mode: 'append' } } ));
});
Handlebars.registerHelper('prepend', function(name, options) {
return Handlebars.helpers['content'].call(this, name, _.extend(options, { hash: { mode: 'prepend' } } ));
});
options = _.defaults(options || {}, {

@@ -43,2 +56,3 @@ watch: 1000

//
var body = view(locals);

@@ -45,0 +59,0 @@

6

package.json
{
"name": "bogart-handlebars",
"version": "0.9.4",
"version": "0.10.1",
"description": "Handlebars tools for Bogart",

@@ -19,5 +19,5 @@ "main": "index.js",

"handlebars": "^4.0.5",
"handlebars-layouts": "~0.2.0",
"handlebars-load-tree": "^0.9.0"
"handlebars-layouts": "=3.1.3",
"handlebars-load-tree": "=0.10.0"
}
}
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