code.conditionals.pug 319 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. - if (true)
  2. p foo
  3. - else
  4. p bar
  5. - if (true) {
  6. p foo
  7. - } else {
  8. p bar
  9. - }
  10. if true
  11. p foo
  12. p bar
  13. p baz
  14. else
  15. p bar
  16. unless true
  17. p foo
  18. else
  19. p bar
  20. if 'nested'
  21. if 'works'
  22. p yay
  23. //- allow empty blocks
  24. if false
  25. else
  26. .bar
  27. if true
  28. .bar
  29. else
  30. .bing
  31. if false
  32. .bing
  33. else if false
  34. .bar
  35. else
  36. .foo