And these tools are now very available to developers, meaning that they can get up and running, be productive, and begin making sites in minutes. As we learned what capabilities were most important to the job of generating lots of site pages, new tools have emerged to those things particularly well. The tools have vastly improved over the years. This might sound like a return to "the old ways" of making sites, but there are some key differences: Static site generators got good! Why are static site generators so popular now? This "decoupled" architecture breaks the relationship between the number of visits to a site and the overhead of generating the views to service all of those visits. This has a number of valuable effects, but most important is that it shifts this work away from "request time" (when users ask for the view) to "build time" which is unrelated to when users ask for the view of a page. Think of a static site generator as a script which takes in data, content and templates, processes them, and outputs a folder full of all the resultant pages and assets. And it does so for every possible view of a site at build time. The greatest difference between a static site generator and a traditional web application stack, is that instead of waiting until a page is requested and then generating its view on demand each time, a static site generator does this in advance so that the view is ready to serve ahead of time. They apply data and content to templates, and generate a view of a page which can be served to the visitors of a site. Static site generators (SSG) do much the same thing. And we'd have to ensure that they had enough horsepower to keep up with demand, fearing the times that our site became popular! They'd faithfully combine templates and content, apply loops and logic, and return a page view whenever one was requested. Web servers would perform that task on demand whenever a request for a resource was received. Years ago, we saw a move away from creating large numbers of individual files by hand, to a system where repeated sections of code could be included and repeated more easily. Guides & Tutorials What is a Static Site Generator? And 3 ways to find the best oneĪs websites grew to deliver more and more content, the web development industry found new ways to make the process of maintaining and updating sites more efficient.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |