I want to be able to use condensed HTML syntax #199
aarongustafson
started this conversation in
Wants
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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