Server-side scripting: Difference between revisions

Content deleted Content added
Line 31:
 
=== Server-side generation ===
AnotherServer-side similargeneration, or SSG, is an alternative to SSR. techniqueWith ofserver-side generatingrendering, contentthe forpage ais websitegenerally isassembled usingon the server-side generationonce per each request. ThisBy techniquecontrast, useswith applicationsSSG, thatthe createapplication generates all the static HTML pages andat thenbuild thosetime. filesThese pre-built pages are sendthen sent to the client at each request, without having to build them again. This leads to faster rendering times, since a new page doesn't have to be generated on every request; the server simply hands over a file it already generated in the past. MoreoverThe downside is that when some data on the page changes, fileit needs to be rebuilt.

File generation can happen on a completely different computer, for example using [[continuous delivery]]. Example of SSG tools are [[Jekyll (software)|Jekyll]], [[Gatsby (software)|Gatsby]] or [[Eleventy (software)|Eleventy]]. Those sites are often hosted on [[Netlify]] or [[GitHub]] pages. GitHub also supports Jekyll projects where it automatically build the site when changes are added to [[git]].
 
== Languages ==