top | item 41425467

My Blog Engine Is the Erlang Build Tool

193 points| billiob | 1 year ago |ferd.ca

14 comments

order

lihaoyi|1 year ago

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

paradox460|1 year ago

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

lkuty|1 year ago

Thanks for sharing. I think I will use it for my blog. I wanted to create a programming blog for a long time and focused on Hugo to build the static site but I could not decide myself since the doc is not good enough IMO and thus I didn't feel comfortable enough to start it. And I want something minimal. Now using Elixir seems like a good idea since it has already been my main programming language for the last few years.

swiftcoder|1 year ago

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

daniel_j|1 year ago

I started mine more specifically for pagination of my blog, but it turned into good practice for character and file manipulation. I've been thinking of giving it a go to create a markdown interpreter. Right now the source files are just html

https://github.com/daniel-Jones/websitegenerator

SoftTalker|1 year ago

Is this basically a different twist on building a static site via a Makefile? I glanced through it and that was my impression but maybe it's more? Not trying to diminish this, just wondering if it's a fair comparison.

hiccuphippo|1 year ago

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.