3 ms·
Code is data is code. I wrote my surrounding static text as a Common Lisp program; relevant BLOBs are put into a resources directory. Blog entries are in Markd
by pnathan 8y ago
Code is data is code.
I wrote my surrounding static text as a Common Lisp program; relevant BLOBs are put into a resources directory. Blog entries are in Markdown, then read into the program, transformed, and the entire thing spat out as HTML.
It then uploads to S3 and renders out in a domain. I'll be moving to the Google cloud edition of that sometime in the next 4 months, I figure.
I've dinked with wordpress, blogger, tumblr, livejournal, dreamwidth, and other platforms, along with 1 or 2 other static site generators, along with writing my own static site generator. This beats all of them in terms of maintainability and simplicity.
I'm a no-name software engineer and this is a way to write down things that I want to share with people. It works really well.
For the curious, here's an out of date edition of the site as Lisp:
https://gist.github.com/pnathan/d57bb0e95fa68552a51755814844d50b https://gist.github.com/pnathan/d57bb0e95fa68552a51755814844...
- kqr 8y agoI also use Lisp, but slighly differently: I've really come to love how flexible and powerful Emacs Org is. With all static generation tools (including those i built myself) I've hit limits. Not with Org, yet.
- pnathan 8y agoYeah, that's another way to do it. The lack of constraints here means that we can explore the space of solutions very freely. :)