1

I'm trying to implement http router with Clojure https://github.com/clojure/core.match library. But since match is macro - it seems that runtime update of routing table is'n possible without using eval, which is evil. Is there any cleaner way to this?

2
  • 2
    For HTTP routing, look at Compojure, Noir, or Moustache - probably best not to roll your own, one of those would probably suffice. Commented Feb 8, 2013 at 21:08
  • Eval is not evil if you have tight control over what it gets to eval Commented Feb 9, 2013 at 7:23

1 Answer 1

2

As Alex said in the comments, you're going to want to check out Compojure.

Since you referenced routing in your question here is the Routes in Detail section of the documentation.

There is also this discussion on Stack Overflow about the "big idea" behind compojure routes.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.