My Blog Engine Is the Erlang Build Tool

  • My own blog http://www.lihaoyi.com/ is also built using the Mill build tool. Incremental builds, parallelosm, watch-and-rebuild, etc are all things that static sites need as much as builds tools do; except you're compiling markdown to html instead of java to classfilrz or whatever. Cool to see others taking the same approach

  • It's very impressive how expressive and flexible the compilers in the BEAMverse are. Elixir extends this rather far, and there are whole utilities such as Surface[1] that are built atop and make heavy use of custom compilers

    For more germane blogging and ssg in elixir/beam, I use and recommend the excellent tableau generator[2], by Mitch Hanberg. I use it to power my own personal site[3], and publish the source[4] for anyone who is interested.

    [1] https://surface-ui.org/

    [2] https://github.com/elixir-tools/tableau

    [3] https://pdx.su

    [4] https://github.com/paradox460/pdx.su

  • That's a pretty cool re-use of existing tooling. Always interested to see the custom static site generators folks have come up with.

  • There's a similar tool for building static sites using the zig build system: https://github.com/kristoff-it/zine

    They made their own template language on top of html. An interesting outcome of this is that any error in the html, like a missing closing tag, becomes a build time error.