logoalt Hacker News

1domlast Sunday at 4:36 PM1 replyview on HN

How did you get to that position? Did you have to create the server side components to solve the SSG comments problem...?


Replies

susamlast Sunday at 5:09 PM

I have always had a comments section on my website since its early days. Originally, my website was written as a set of PHP pages. Back then, I had a PHP page that served as the comment form. So later when I switched to Common Lisp, I rewrote the comment form in it.

It's a single, self-contained server side program that fits in a single file [1]. It runs as a service [2] on the web server [2], serves the comment and subscriber forms, accepts the form submissions and writes them to text files on the web server.

[1] https://github.com/susam/susam.net/blob/0.4.0/form.lisp

[2] https://github.com/susam/susam.net/blob/0.4.0/etc/form.servi...

[3] https://github.com/susam/susam.net/blob/0.4.0/etc/nginx/http...

show 1 reply