nasus icon indicating copy to clipboard operation
nasus copied to clipboard

Rendering module

Open jaromil opened this issue 7 years ago • 4 comments

how about some way to import this from clojars and run it plugging a rendering module to beautify the listing with hiccup or templating? cheers

jaromil avatar Mar 15 '19 09:03 jaromil

Server runner should be extracted to a separate function to allow testing. After that is done, it would be possible to run the server programmatically. I'm not sure how to expose access to middlewares applied... Let me think about this.

kachayev avatar Mar 15 '19 15:03 kachayev

Another perhaps simplier way around is to have an optional templating system inside nasus that is customisable from external html files. This is trivial and I can also volunteer doing it.

jaromil avatar Mar 16 '19 13:03 jaromil

@jaromil Please, move ahead and submit a PR. I will review it. I have no strong opinion on the matter as I never faced the use case you've described.

kachayev avatar Mar 16 '19 14:03 kachayev

OK, will take me some time. My use-case is basically substituting an old and rusty php setup to serve files using your application, with an nginx reverse-proxy for let's encrypt tls certs. The server is actually under some load and I suspect it will benefit. I like your code and clojure in general very much, because is maintainable.

jaromil avatar Mar 16 '19 18:03 jaromil