I am looking to get the following logic in Handlebars.js
the following line should appear in the output if
foois truthyxxx.yyy.zzz = {{foo}}no line should appear if
foois falsy
How can I do it?
UPDATE:
- I know I can wrap the line into an
#ifcondition, but it's too wordy, is there a more elegant way?
UPDATE:
- The question is rather:
- Whether or not Handlebars can handle it without an
#ifwrap for a single line?
- Whether or not Handlebars can handle it without an