Re:Maud: A Rust macro for writing HTML
by Inviz on Tuesday June 07, 2022 @04:21AM
(#31651284)
I wish it was still the consensus among JS devs. People are putting css into JS files, on top of html
[ Parent
| on HN ]
I think it isn't the consensus anymore because there isn't actually a "correct" solution. It's too subject to personal preference. For example, I prefer having HTML + CSS + JS all in the same file because then I know everything relevant to the component or page I'm working on is right there. I do concede that it can get extremely unwieldy if you don't separate out components though.
Re:Maud: A Rust macro for writing HTML
by My71staccount on Tuesday June 07, 2022 @08:57AM
(#31653552)
There is a correct solution (the one you're not doing)