3 ms·
I'm a little put-off by the baked-in Markdown compiler. It's partly concerning because of the many dialects of Markdown, and the various configuration options a
by slang800 11y ago
I'm a little put-off by the baked-in Markdown compiler. It's partly concerning because of the many dialects of Markdown, and the various configuration options available for each one (which a server shouldn't need to support).
But also, in terms of Separation of Concerns, it doesn't seem like the server should be responsible for compilation tasks when it doesn't need to be. It would be much better to move that out into a separate tool for compiling Markdown to HTML (perhaps on-save, for authoring) - many of those already exist. Or, if you really wanted to perform compilation during a request, it could at least be moved out of the server core, into a FastCGI script (perhaps something like https://menteslibres.net/luminos/ https://menteslibres.net/luminos/).
Oh, and that whole method of using a `Caddyfile` at the root of the project, for configuration, is quite nice.
- mholt 11y agoI actually agree with you. I wonder if the Markdown middleware will turn into more of a "static site generator" anyway. There's definitely some room for change in this area of its development, so if you'd like, I'd welcome your involvement.