minus-squarelevi@aussie.zonetoLemmy Shitpost@lemmy.world•I wishlinkfedilinkarrow-up1·11 months agoIt looks like this is a handlebars helper. Handlebars is a temptating language. I’ve never used handlebars but I’m guessing this is syntactic sugar for non-programmers. Like: <div>{{if is-even myVariable}} it's even {{else}} it's odd {{endif}}</div> linkfedilink
minus-squarelevi@aussie.zonetoLemmy Shitpost@lemmy.world•I wishlinkfedilinkarrow-up25·11 months agoOh man, in js we have a package for this magic. linkfedilink
It looks like this is a handlebars helper.
Handlebars is a temptating language.
I’ve never used handlebars but I’m guessing this is syntactic sugar for non-programmers. Like:
<div>{{if is-even myVariable}} it's even {{else}} it's odd {{endif}}</div>