Skip to content

A small collection of useful helpers for Handlebars.js

Notifications You must be signed in to change notification settings

vizo/Handlebars-Helpers

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Handlebars Helpers

A small collection of useful helpers for Handlebars.js.

Equals

If x Equals y

{{#if_eq x compare=y}} ... {{/if_eq}}

Unless x Equals y

{{#unless_eq x compare=y}} ... {{/unless_eq}}

Greater Than

If x > y

{{#if_gt x compare=y}} ... {{/if_gt}}

Unless x > y

{{#unless_gt x compare=y}} ... {{/unless_gt}}

Greater Than or Equal To

If x >= y

{{#if_gteq x compare=y}} ... {{/if_gteq}}

Unless x >= y

{{#unless_gteq x compare=y}} ... {{/unless_gteq}}

Less Than

If x < y

{{#if_lt x compare=y}} ... {{/if_lt}}

Unless x < y

{{#unless_lt x compare=y}} ... {{/unless_lt}}

Less Than or Equal To

If x <= y

{{#if_lteq x compare=y}} ... {{/if_lteq}}

Unless x <= y

{{#unless_lteq x compare=y}} ... {{/unless_lteq}}

nl2br

Convert new lines (\r\n, \n\r, \r, \n) to line breaks

{{nl2br description}}

About

A small collection of useful helpers for Handlebars.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published