Static site generator v. 0.2
19 Jan 2025As I wrote in this post, templating on my site is handled by a simple static page generator written by me in Bash. It worked quite well, but it had one big drawback - it used curly brackets for its tags, instead of the standard HTML characters less than and more than. Because of this solution, adding a character that would be ignored by the script, e.g. to show how to enter a tag for the generator on the script's website, would be more difficult. That's why I made a batter version where the tag characters are the standard lt (<) and gt (>). After removing the lines with comments, this script is about 90 lines long. When I remove the function to ignore <pre> tags, it will be even smaller.
The script still uses standard GNU utils. I guess I'll have to work on it so that it can also work with other coreutils, e.g. BSD coreutils, and not just GNU. For now, it is only tested with GNU.
Are Bash scripts allowed on suckless.org? If they are, then my generator could be considered suckless in the future!