Skip to content

HouseBreaker/handlebars-helper-selectif

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

handlebars-helper-selectif

A Handlebars helper for selecting an option in a dropdown input field, based on an equality check

Idea and template is from this helper module

Installation

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

npm install handlebars-helper-selectif --save

Usage

In your JavaScript file:

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

In your Handlebars template:

{{ selectif option value }}

Tests

npm install

About

A Handlebars helper for selecting an option in a dropdown input field, based on an equality check

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published