Node.js: Templating vs SPA

I have built myself a Node.js Sandbox web app that I can play with Node locally.

  1. Which is the best way to go? Templating or SPA?
  2. What are the advantages and disadvantages of each?
  3. When you first set up a Node site is it already using one of the above methods?

From what I understand, template method is default.
We always use SPA. It has its quirks but its fast.

You can build SPA pages with partial refreshing content using the templating system, as explained here:

This article may help you

For reasons mentioned in the article, I tend to use the Templating for public-facing pages (with exceptions) and SPA for the site’s Dashboard where there is a lot of user interaction.

1 Like