4 ms·
Been there, done that. You implement just a header navigation change, now you're copy pasting across 12 different files. But wait, now you want to add an activ
by epolanski 1y ago
Been there, done that. You implement just a header navigation change, now you're copy pasting across 12 different files.
But wait, now you want to add an active state to your navigation links, and you're manually changing the `class="active"` in 12 different files...
I could go on, it doesn't scale beyond triviality, albeit LLMs do help speeding up.
- johnisgood 1y agoThat is why you can include a header.html, nav.html, and footer.html if you so wish! There are many ways to do this. :P Depends on your use case.
- nottorp 1y agoIf you don't go through two different ORMs - running on separate AWS VMs of course - and then to a third server that has the actual database, it's not professional.
- epolanski 1y agoAnd then you need a dependency to glue them together...And now you want to provide data..And now you want to put content in children. And you went from a simple nginx extension to again full blown software.
- johnisgood 1y agoI said it depends though. You could easily do this or some of it in an nginx config using OpenResty or nginx + Lua extension.
- porridgeraisin 1y ago$ man sed Or for more complex things $ vim :cfdo