3 ms·
Seriously, you think programatically transforming a document into presentational html is simpler than using a css selector?
by olavk 11y ago
Seriously, you think programatically transforming a document into presentational html is simpler than using a css selector?
- lmm 11y agoI already build up my HTML programmatically from reusable components, following DRY (Don't you?). That means the markup for what it means to be e.g. a paragraph heading is already in one place. It's no trouble to style it there, with a font tag, and if I want to change it then I can change it there. And if I want to abstract out a particular piece of styling and reuse it across several components, it's just code, I factor it out the same way I would anything else. So yes, seriously, it's simpler than using a CSS selector.