Open MitchAnderson93 opened 3 months ago
Hi @MitchAnderson93 ,
do you think if its a good idea to split the handlebars out as a library npmjs module to be imported as they look generic enough to be its own module.
https://github.com/search?q=repo%3AQld-Health-Online-Team%2Fdesign-system+helpers&type=code&p=3
Your thoughts?
List of custom handlebars helpers to reduce code:
Ability to check (in handlebars) if a json object is true or false explicitly e.g. {{#if item boolean}} instead of {{#if item}}
Ability to compare two strings e.g. {{#isType this.value "value"}}
// Done, added in QOL-100
Ability to calculate by X/determine end of row // Done, added in QOL-100
Examples we can re-use:
[QH helper modules](https://github.com/Qld-Health-Online-Team/design-system/blob/master/src/helpers/Handlebars/ifCond.js)