Skip to content

Commit

Permalink
Add more CIDER indent spec metas
Browse files Browse the repository at this point in the history
defapi, defroutes, letroutes
  • Loading branch information
ikitommi committed Feb 2, 2016
1 parent 226e4f5 commit dda980e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/compojure/api/api.clj
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,5 @@
" (:doc (meta #'compojure.api.middleware/api-middleware)))}
defapi
[name & body]
{:style/indent 1}
`(def ~name (api ~@body)))
2 changes: 2 additions & 0 deletions src/compojure/api/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"Define a Ring handler function from a sequence of routes.
The name may optionally be followed by a doc-string and metadata map."
[name & routes]
{:style/indent 1}
(let [[name routes] (macro/name-with-attributes name routes)]
`(def ~name (routes ~@routes))))

Expand All @@ -28,6 +29,7 @@
Equivalent to: `(let [...] (routes ...))`"
[bindings & body]
{:style/indent 2}
`(let ~bindings (routes ~@body)))

(defn undocumented
Expand Down

0 comments on commit dda980e

Please sign in to comment.