Is it possible to use ternary operator in Pug code ?
My attempt to make it work:
Pug file
- var disabled = true
input(type="checkbox" disabled ? disabled : null)
HTML result
<input disabled ? disabled : null></input>
HTML desired result
<input disabled></input>
I know about standard conditional Pug syntax which described here, but it hard to believe that there's no chance of using ternary operator in modern Pug syntax.
Thanks for helping me!