3 ms·
Yes, when your app is a highly interactive SPA it makes sense to do everything on the client and ignore server side rendering. But when you are just building si
by vbsteven 8y ago
Yes, when your app is a highly interactive SPA it makes sense to do everything on the client and ignore server side rendering. But when you are just building simple dynamic admin/crm-style sites with some extra interactiveness sprinkled on top I still reach for my trusted Thymeleaf in Java or ERB in rails.
Thymeleaf and ERB are a lot more than "just string interpolation". Thymeleaf even uses valid xml attributes so it's not a completely different language.
My pages load and paint fast. Most pages don't need all that interactivity. In most projects I have 1 or 2 pages that are interaction-heavy and for those I usually shell out to Vue, and have my server-side templating inject the source JSON in the <script> tag so an extra request for fetching the data is not necessary.