Closed char101 closed 6 years ago
pugjs output
<!DOCTYPE html>
<html>
<head></head>
<body>
<div class="div1">
<div class="div2"><a>item1</a><a>item2</a>
<div class="div21"><a>item1</a><a>item2</a>
</div>
</div>
<div class="div3"></div>
</div>
</body>
</html>
For both Pugjs and Phug, pretty is a deprecated and not 100% reliable option. I recommand to better use a separated HTML beautifier. Moreover, mixins are executed at render time, and indent them according to the call indent would cost a lot. We probably won't fix this.
Thanks for the explanation, I'll try to format the resulting HTML using tidy5.
Hello,
I encountered an issue with the following code:
I expected to get:
But I actually get:
Thanks!