I’m making website templates where the final product will be static HTML files.
What I’m looking for is something in PHP (or maybe Ruby) that will allow me to develop the pages in that language and then output the files to HTML (with the right structure and names) in a click or command.
You need static site generator.
Some examples: