New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.1.14 to 0.2.0

tests/gold.html

4

index.js
var _ = require('lodash'),
handlebars = require('tommydudebreaux-handlebars'), // parens will prevent browserify from packaging.
handlebars = require('handlebars'), // parens will prevent browserify from packaging.
defaultViewResolver = !process.browser ? require('./viewresolver') : null;

@@ -25,3 +25,3 @@

view: {
path: process.cwd(),
base: process.cwd(),
ext: "html"

@@ -28,0 +28,0 @@ }

{
"name": "broadway-handlebars",
"version": "0.1.14",
"version": "0.2.0",
"main": "index",

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

"scripts": {
"test": "node tests/example.js"
"test": "node tests/unit.js"
},
"dependencies": {
"lodash": "0.7.0",
"tommydudebreaux-handlebars": "*",
"broadway": "*",
"findit": "*",
"async": "*"
"lodash": "1.0.1",
"handlebars": "1.0.x",
"broadway": "0.2.6",
"findit": "0.1.2",
"async": "0.2.5"
},
"devDependencies": {
"optimist": "*"
"tap": "*"
},

@@ -44,0 +44,0 @@ "optionalDependencies": {},

@@ -7,2 +7,10 @@ var _ = require('lodash'),

/**
* A ViewResolver resolves template names to template contents. This default implementation treats template names as
* relative paths and reads files at those locations as template contents.
*
* @param options.ext {String} file extension. defaults to "html".
* @param options.base {String}, {Array} base path or paths. will attempt to resolve template names relative to these
* paths in order
**/
var ViewResolver = function(options) {

@@ -9,0 +17,0 @@ this.options = _.defaults(options, {

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