79494400

Date: 2025-03-08 12:51:25
Score: 0.5
Natty:
Report link

In PyPugJS, when you want to add an HTML5 data attribute without a value, you need to set it to "true" rather than leaving it empty


div(uk-grid="true")
  div

This will generate


<div uk-grid>
  <div></div>
</div>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Coco Q.