Context matters, because there is a place for both approaches. For pages that you know is unlikely to need updating (such as one-offs or dev-only pages) or for quick UIs or POCs, then a get-to-the-point-quickly approach makes sense. This might also be true for really small teams, or personal projects where the skill level of whoever will encounter the page is really well defined.
There are other cases, though. For instances where this is just a starting point and future enhancements are likely, it makes sense to draw clearer lines between different logic points. In cases where maintenance costs more than development (such as corporate environments), a clear separation can also be beneficial.
There are other cases, though. For instances where this is just a starting point and future enhancements are likely, it makes sense to draw clearer lines between different logic points. In cases where maintenance costs more than development (such as corporate environments), a clear separation can also be beneficial.