Name: handlebars-helper-and
Owner: Helpers
Description: Handlebars helper that returns true when all of the given conditions are truthy.
Created: 2018-03-23 18:27:59.0
Updated: 2018-03-23 18:42:16.0
Pushed: 2018-03-23 18:42:21.0
Homepage: https://github.com/jonschlinkert
Size: 8
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Handlebars helper that returns true when all of the given conditions are truthy.
Please consider following this project's author, Jon Schlinkert, and consider starring the project to show your :heart: and support.
Install with npm:
m install --save handlebars-helper-and
lebars.registerHelper('and', require('handlebars-helper-and'));
Params
a
{any}b
{any}options
{Object}: Handlebars provided options objectreturns
{String}Example
{ great: true, magnificent: true } -->
nd great magnificent}} A {{else}} B {{/and}}
results in: ' A ' -->
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Please read the contributing guide for advice on opening issues, pull requests, and coding standards.
Running Tests
Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:
m install && npm test
Building docs
(This project's readme.md is generated by verb, please don't edit the readme directly. Any changes to the readme must be made in the .verb.md readme template.)
To generate the readme, run the following command:
m install -g verbose/verb#dev verb-generate-readme && verb
Jon Schlinkert
Copyright © 2018, Jon Schlinkert. Released under the MIT License.
This file was generated by verb-generate-readme, v0.6.0, on March 23, 2018.