What's the Best Framework for Self-Contained Static Web Pages?
Asked by
CreativeSky123
I'm on the hunt for a simple yet comprehensive framework for creating self-contained static web pages, including both CSS and JavaScript. My goal is to have everything minimized and rendered into a single file from the sources. Additionally, I appreciate having a dev server that can detect file changes and recompile automatically. I've tried Jekyll before, but I'm curious about what other options might be out there.
Answers
Are you literally looking for a single HTML page with embedded CSS and JavaScript? If thatโs the case, youโre basically describing something that could be done with any modern web framework, as long as there's no backend server code involved. For static pages, you could even host everything on the file system as long as the browsers have access. You might be overcomplicating things a bit!
Reply to this answer
Have you checked out Astro? Itโs designed specifically for modern static site generation and might fit your requirements well. Plus, it's pretty efficient with loading only what's necessary, keeping your pages lightweight!
Reply to this answer
HTML? Like just writing HTML directly? Seems a bit old school, donโt you think? If you're into frameworks, figure out what language you'd prefer first and build a setup that can manipulate data for JavaScript. Then you can save your static HTML easily whenever you want! Seriously, who writes plain HTML anymore?
Reply to this answer
Add your answer
Answers are reviewed before publication.
CreativeSky123: Haha, I know right? Just trying to find a balance between simplicity and efficiency!