Server-Side Rendering approaches typically generate markup on every request to the server. They return dynamic HTML content 'On the fly'.
Server-side scripting languages provide syntax that is interpreted by the view engine of an application server to dynamically write HTML and send it in an HTTP response.
The following is the example of a PHP script.
For application server runtimes such as; Nodejs, Python, Java, PHP etc. there are libraries called template engines that can provide templating syntax.
The following is an example of a handlebars template:
Examples of these are:
- Angular - Angular Universal (Runs on an express app)
- React - NextJS
- Vue - NuxtJS
- Svelte/Angular/React - MeteorJS
In the next post, we shall look at Client-Side Rendering.
Top comments (0)