This is a series of MATLAB style relational operators for Handlebars.
With any helper a, b
are values compared if a condition valudates
- eq - equal to
- ne - not equal to
- lt - less than
- gt - greater than
- le - less than or equal to
- ge - greater than or equal to
Include the operators needed in your application. Then condition in your template, for example:
{{#eq a b}}This is output if it validates{{/eq}}
Created by Makis Tracend
Simplified version for Node.js handlebars:
Usage: