Does this support ef core ie would it turn dynamic pages static? #238
-
I am trying to cut down costs in costing a blog and was wondering will this take into account db driven pages. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Statiq is a static generator. The goal of a static generator is to execute as much logic as possible before hand, outputting "static" files that a web server can serve to a client. While it can interact with any ORM during the generation phase (given that generation is accomplished with a combination of pre-built modules and normal C# code), no C# or .NET code executes at runtime and generally only JavaScript that you've included on your pages during the generation process and that runs on the client is evaluated. There are strategies for more dyamic statically generated sites though. One that's been succesfull for myself and others is to kick off a new generation using an automation platform like GitHub Actions whenever the underlying content changes (this could be a new file, a database update, etc.). The idea is that the GitHub Actions execution rebuilds the site to include the new content and then deploys it, so that any new items are updated and available on the main site. |
Beta Was this translation helpful? Give feedback.
Statiq is a static generator. The goal of a static generator is to execute as much logic as possible before hand, outputting "static" files that a web server can serve to a client. While it can interact with any ORM during the generation phase (given that generation is accomplished with a combination of pre-built modules and normal C# code), no C# or .NET code executes at runtime and generally only JavaScript that you've included on your pages during the generation process and that runs on the client is evaluated.
There are strategies for more dyamic statically generated sites though. One that's been succesfull for myself and others is to kick off a new generation using an automation plat…