Hello! I haven’t forgotten about this! (Have been reading code, and of course other life happenings.)
I’m interested in whether you have a preference for how to structure code.
You currently have a lot of shared code in httplib/serve/dir.go which, interestingly, depends on this specific template for serving lists of directories. This code is shared by rcd
and serve http
, among others.
If I updated this to use a more interesting template, would you be okay with this template being used for any action which serves a GUI? If not, then I may have to do a bit of refactoring to separate the Serve()
method from the code for rendering templates, or pass a template option into that method.