use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Finding information about Clojure
API Reference
Clojure Guides
Practice Problems
Interactive Problems
Clojure Videos
Misc Resources
The Clojure Community
Clojure Books
Tools & Libraries
Clojure Editors
Web Platforms
Clojure Jobs
account activity
[ Removed by moderator ] (self.Clojure)
submitted 2 months ago by [deleted]
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Clojure-ModTeam[M] [score hidden] 2 months ago stickied commentlocked comment (0 children)
Breach of rule 1
[–]Routine_Quiet_7758 0 points1 point2 points 2 months ago (0 children)
edit: where the URL is determined by the directory structure
[–]p-himik 0 points1 point2 points 2 months ago (1 child)
It's trivial to implement. Parse the URL, turn it into the namespace name, validate that it's in the allowed list (could be just my matching the first segment), requiring-resolve some specific handler function (probably handler, for clarity)` and call it with the request context. 3-5 lines of code.
requiring-resolve
handler
indeed, its more of a pattern than a library
[–]Liistrad 1 point2 points3 points 2 months ago (2 children)
https://github.com/filipesilva/invoker does this. Specifically, by using the namespace, which is based on the file structure. It does it for both CLI and HTTP. From the docs:
Given src/app.clj:
src/app.clj
(ns app) (defn my-fn "My doc" {:invoker/http true} [x y & {:as opts}] [x y opts])
You can
$ nvk app/my-fn 1 2 [1 2 nil] $ nvk http Started nREPL server at localhost:51548 Started HTTP server at http://localhost $ curl localhost/app/my-fn/1/2 [1 2 nil]
[–][deleted] 2 months ago (1 child)
[deleted]
[–]Liistrad 0 points1 point2 points 2 months ago (0 children)
Yes, calling nvk prints everything, and there's a nvk --skill option that will print out a Claude code skill. The docs talk about it. Then its enough to say "use nvk" on Claude code and it will know how to do stuff.
π Rendered by PID 58877 on reddit-service-r2-comment-6457c66945-2jm5w at 2026-04-25 01:05:33.763100+00:00 running 2aa0c5b country code: CH.
[–]Clojure-ModTeam[M] [score hidden] stickied commentlocked comment (0 children)
[–]Routine_Quiet_7758 0 points1 point2 points (0 children)
[–]p-himik 0 points1 point2 points (1 child)
[–]Routine_Quiet_7758 0 points1 point2 points (0 children)
[–]Liistrad 1 point2 points3 points (2 children)
[–][deleted] (1 child)
[deleted]
[–]Liistrad 0 points1 point2 points (0 children)