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.
3 Answers
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?
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!
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!
Haha, I know right? Just trying to find a balance between simplicity and efficiency!