by sublinear · 1y ago · 0 comments
That's a really low bar. Why not static pages? Why even use a framework at all if you're thinking of using Astro?
Using a framework has upsides over writing static pages manually. Most notably, you can decompose your website into reusable components which makes your implementation more DRY. Also, you can fluently upgrade to a very interaction-heavy website without ever changing tech or architecture. But that's just what I value. I whole-heartedly recommend trying it out.
If you use static pages, how do you make sure that shared UI like navbars all update if you decide to make a change?
<html>
{% include "components/head.html" %}
<body>
{% include "components/navbar.html" %}
...
</body>
</html>
Some even allow you to pass variables, so something like: {% include "components/button.html" text="example" url="https://example.com" %}[1] https://htmx.org/essays/template-fragments/#known-template-f...