Socket
Book a DemoInstallSign in
Socket

handlebars-helper-equal

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

handlebars-helper-equal

A Handlebars helper for testing equality

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

handlebars-helper-equal

A Handlebars helper for testing equality

Found it on some blog.

Installation

Download node at nodejs.org and install it, if you haven't already.

npm install handlebars-helper-equal --save

Usage

In your JavaScript file:

var express = require("express")
var hbs = require("hbs")
hbs.registerHelper("equal", require("handlebars-helper-equal"))
var app = express()
app.set("view engine", "hbs")
// etc...

In your Handlebars template:

{{#equal unicorns ponies }}
  That's amazing, unicorns are actually undercover ponies
{{/equal}}

Tests

npm install

Keywords

handlebars

FAQs

Package last updated on 03 Oct 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts