small code layout change

This commit is contained in:
mrjvs 2018-11-20 16:12:04 +01:00
parent 72265168e4
commit 06f9b165f9

View File

@ -56,16 +56,12 @@ const hbsEngine = handlebars({
partialsDir: 'views/partials',
helpers: {
'if_eq': function(a, b, opts) {
if(a == b) // Or === depending on your needs
return opts.fn(this);
else
return opts.inverse(this);
if(a == b) return opts.fn(this);
else return opts.inverse(this);
},
'if_neq': function(a, b, opts) {
if(a != b) // Or === depending on your needs
return opts.fn(this);
else
return opts.inverse(this);
if(a != b) return opts.fn(this);
else return opts.inverse(this);
}
}
});