You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I feel HTML is unnecessarily verbose and solutions like Pug and HAML are much more readable. Why not have Pug syntax (or others) natively understood by browsers? Compare:
<div class=""grid"">
<h1 class=""title"">Some text here</h1>
<img class=""cover-photo"" src=""https://samplelink"">
<p class=""description"">Some example description text</p>
</div>
to
.grid
h1.title Some text here
img.cover-photo(src='https://samplelink"")
p.description Some example description text
I don't know why I'd ever choose to write the HTML version, but that's what all our code has to compile to currently. I can imagine a world where Pug (or an alternative) natively just works. HTML is clunky, hard to read, and has so many weird quirks that you just have to learn over time. It doesn't have to be forced (e.g., "everyone must use pug syntax!"), but it could be just become something you could declare in the doctype if you want to write another way.
This discussion was converted from issue #199 on December 04, 2020 22:38.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I feel HTML is unnecessarily verbose and solutions like Pug and HAML are much more readable. Why not have Pug syntax (or others) natively understood by browsers? Compare:
to
I don't know why I'd ever choose to write the HTML version, but that's what all our code has to compile to currently. I can imagine a world where Pug (or an alternative) natively just works. HTML is clunky, hard to read, and has so many weird quirks that you just have to learn over time. It doesn't have to be forced (e.g., "everyone must use pug syntax!"), but it could be just become something you could declare in the
doctype
if you want to write another way.https://webwewant.fyi/wants/123/
Beta Was this translation helpful? Give feedback.
All reactions