4 ms·
It's not scalable to a small team either. The amount of copy/paste of markup I had to clean up on a site that didn't actually contribute to style, presentation
by zdragnar 1y ago
It's not scalable to a small team either. The amount of copy/paste of markup I had to clean up on a site that didn't actually contribute to style, presentation or information was insane. Just divs and divs of tailwind classes all overriding each other or having no effect copy pasted everywhere.
Far better to have a tool that lets you define small, reusable, composable building blocks and let your team just use those.
- em-bee 1y agoexactly, even for a single person maintaining just a few pages with a bit of style and navigation is already a chore. i'd rather use a js framework or even xslt than edit the menu on every page, every time i need to add a new page.
- wmanley 1y agoWith jinja you’d use template inheritance and just update the base template for this: https://jinja.palletsprojects.com/en/stable/templates/#template-inheritance https://jinja.palletsprojects.com/en/stable/templates/#templ...
- em-bee 1y agosure, that's just one of the many frameworks or tools i could use. the point is, there is no way to do that without any processing, either on the server or in the browser.
- debo_ 1y agoWeb components work ok, and so does templated html. I was making reusable html components with Django templates in like, 2008.
- librasteve 1y agojust to mention you CAN do this with HTMX using a server side library… there are many, personally I like https://harcstack.org https://harcstack.org (because i wrote it)