Fork me on GitHub
Al Baker15:10:45

so are compojure and compojure-api mutually exclusive in a single namespace, i.e. GET clashes? Or, can you use compojure-api in place of compojure?


@albaker you can use both, but the names do clash unless you use use full paths or different aliases, e.g.

(require '[compojure.core :as cc])
(require '[compojure.api.core :as cac])



but you can use c-api in place of compojure, c-api just wraps the compojure stuff.


some subtle differences, for example c-api routes allows sequences of routes and nil routes, compojure requires that everything is a ring handler.

Al Baker17:10:39

Ok, thanks!