Show HN: Shite: The little hot-reloadin' static site maker from shell https://ift.tt/HcCrBaZ

Show HN: Shite: The little hot-reloadin' static site maker from shell Or more precisely, my little site maker... It is a personal tool that I thoroughly enjoyed making, and enjoy using to write my website < https://evalapply.org >. A caveat before any more; nobody was supposed to promote this insanity. Like, terrible things have been done involving inotify and xdotool. But . It showed up on HN some months ago. That too while it was still, shall we say, fermenting. It got "done" some time thence, and of course one could not let the half-past just be . So here we are, for better or worse. Thank you HN mods for helping me repost! _\\// The README explains all, animated GIFs and whatnot. Some assorted highlights: - shite's, ah, "business logic" (except templates) is about 300 lines of Bash, written in Functional Programming style [^]. Pipeline all the things! - The innards won't surprise Perl/PHP/Shell gentleperson hackers from the last century. - The local hot reloading workflow is surprisingly nice, and occasionally hilarious! No JavaScript needed. - Full rebuilds are low performance and that's fine :) - Pandoc is great. - Sometimes sed and regex is exactly the HTML parser you need. *Very* sometimes. - stdio buffering can mess you up - jq -Rr @html # escapes HTML; what?! ... and all sorts of other stuff noted in the README and inline docs. [^] because shell ain't a bad place to FP... https://ift.tt/vBuNZl0... --- P.S.The commit history stops at 3-odd months ago, because I've been using a private fork for day-to-day content drafting, publishing, and layout tweaks. The "business logic" is by and large the same as the public version linked here. https://ift.tt/4MLO7uJ January 23, 2023 at 01:43PM

Comments

Popular Posts