I'm looking for a straightforward command-line tool that allows me to create a main HTML file that can include other files. Essentially, I want to generate a single HTML file that I can host on a server. I've searched online but haven't found anything that doesn't require setting up Node or similar environments on the server. I'm very close to just writing a script myself, but I'd prefer to find an existing tool that handles this.
1 Answer
You might want to check out Hugo. It’s a static site generator that doesn’t depend on the server-side JavaScript ecosystem. It’s written in Go and comes as a prebuilt binary, so you can run it without needing Node. That said, it could be a bit more elaborate than you need for what sounds like a simple task, so scripting it out yourself is definitely a valid option too!
I appreciate the suggestion! I actually don't mind using Node, I just want something I can run with a single command on my machine so nothing has to be set up on the server. I saw someone recommend 11ty, planning to give that a shot!