handlebars-helper-equal

A Handlebars helper for testing equality

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
handlebars-helper-equal
601.0.08 years ago8 years agoMinified + gzip package size for handlebars-helper-equal in KB

Readme

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