![]() It’s pre-rendered on the server-side and then served to the browser, making it fast to load. In these cases, the SSG still generates static assets, but those use the prescribed frontend framework and may generate content at build time or load it client-side at runtime as in a typical single page application (SPA).Ī static site is a pre-built HTML, CSS, and JavaScript website. JavaScript static site generators: They are built using a JavaScript framework like React, Vue, or Angular. Their job is simply to generate the HTML, CSS, and JavaScript assets, not to dictate how they are built. Traditional static site generators: They are not prescriptive on how the frontend of your site is built. ![]() There are two broad types of modern static site generators. So, while the language a tool uses is worth considering, it should rarely be the primary consideration. For example, Jekyll is written in Ruby, but it is unlikely you'll ever write any Ruby when using it (unless you have specific needs requiring a new plugin). However, the importance of the underlying language of an SSG can be overstated. The ones we'll discuss here are built-in languages like Ruby, Go, and JavaScript. In fact, there probably is one that already exists, built in any language that you can think of. Static site generators can be built in just about any language. This is why we call them static site generators since the assets they create (i.e., the ones we will deploy) are all static. This is similar to any dynamic web programming language like PHP, for example, but the key difference is that this is done at build time rather than on the server in response to each page request. It combines them with tools like Handlebars, Liquid, or Nunjucks to generate the pages of a website. A static website generator is a simple markup that uses a language like Markdown or HTML, data (in JSON, YAML, or TOML format), and templates.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |