b/rb/log 4: cleaning up
interleaving serves and faster (less) code
mood: proudsoftwareblog/reblogdevlognot a ton to report, except that i am finally back on this horse. i'm making two tightly related but pretty small changes:
- multiple serves can be mounted at the same path, where it just wouldn't let you before, so e.g. you can host some statics and a git repo at the same url, like i plan to for todo.
- instead of just the closest match being used, every serve with a matching mount point will be tried, trying the serves with the longest mount point first.
aaaand i'm also refactoring the whole thing. and replacing my janky bespoke templating with something more standard, maybe minijinja
. so it'll be a minute before i actually have a new version of this released.
that said: i've actually made really good progress! done probably 80% of the work, so the remaining 80% should be done before the next blogpost! if you want to see you can git clone https://genderphas.ing/projects/blog-reblog
and peruse.
after this big step is done i'm going to start the next big one: the config file parsing. then b/rb will finally be a usable, if very early pre-release, static site generator!
i also plan to add support for a few new serves over the next little while. they're just random things i've wanted to have available:
listing
will serve a directory listing and a directory zipfile, and thus will have to nudgeindex.html
around, but is otherwise like static serves.git
will serve a git repo with the dumb protocol, since it's completely compatible with a static server.