mirror of
https://github.com/PretendoNetwork/website.git
synced 2026-04-24 07:27:10 -05:00
small code layout change
This commit is contained in:
parent
72265168e4
commit
06f9b165f9
12
server.js
12
server.js
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user