block-code.pug 254 B

123456789101112
  1. -
  2. list = ["uno", "dos", "tres",
  3. "cuatro", "cinco", "seis"];
  4. //- Without a block, the element is accepted and no code is generated
  5. -
  6. each item in list
  7. -
  8. string = item.charAt(0)
  9. .toUpperCase() +
  10. item.slice(1);
  11. li= string