Hacker News new | ask | show | jobs
by adrianmonk 964 days ago
> Plus, you get to choose your own stack. Want to write your content in AsciiDoc? No-one can stop you!

I wrote a static site generator once. I used a Makefile and m4 macros!

Yes, it's true: nobody could stop me. It's much more debatable whether the "you should" part applies. I was just trying to get some common header and footer HTML into all pages of a site and do it with tools that were already installed on the hosting provider's machine.

It worked. For some reason, the person who took over the site after me did not follow in my footsteps and keep using m4.

2 comments

This is presently how my website works. I'm no webdev so I'm probably committing all sorts of heresies, though. I use m4 macros to build the header/footer structure with links and coloring and whatnot. Then the content pages are emacs Org files I publish to HTML and include with the m4 macros. You can do a surprisingly large amount with Org Export.
> For some reason, the person who took over the site after me did not follow in my footsteps and keep using m4.

Shame...

Anyway, my first and only SSG was based on Atom for storage, PHP for backend and XSL for client side rendering.

We called this flat file CMS which was the style at the time and...