Discovered today I have a surprisingly strong opinion on

<div class="foo{{if cond " bar" " baz"}}">
<div class="foo {{if cond "bar" "baz"}}">

...fortunately I _think_ I'm the only one on the team with a _strong_ opinion, and I can express it well 😅

(I strongly prefer the second - the short version is that worrying about extra spaces in the DOM is optimizing for tidiness in the stuff we don’t see or care about, at the cost of tidiness in the stuff we do see and care about)


@cincodenada I was like "I don't see the diff- OH NO! EWWW!"
… strongly prefer the second as well, purely on aesthetic grounds 😆

Sign in to participate in the conversation
Tabletop Social

We are an inclusive Mastodon community for everything tabletop (and more).