Skip to content
This repository was archived by the owner on Jul 11, 2023. It is now read-only.

Commit 69ceb80

Browse files
committed
Removed comments and updated docstring.
1 parent f105861 commit 69ceb80

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

include/macros.lfe

+1-17
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,6 @@
1-
;; We need 3 functions of different arities:
2-
;; routes/2 - NOTFOUND expr
3-
;; routes/3 - METHOD path expr
4-
;; routes/3 - FORBIDDEN method-list
5-
;; routes/4 - METHOD path args expr
6-
7-
8-
; (defroutes handler
9-
; (POST "/order"
10-
; (create-order))
11-
; (GET "/order/:id" (id)
12-
; (get-order id))
13-
; )
14-
15-
;; XXX this macro should probably be moved into lfe-utils ...
161
(defmacro in (item collection)
172
`(orelse ,@(lists:map (lambda (x) `(=== ,x ,item)) collection)))
183

19-
;; XXX this macro should probably be moved into lfe-utils ...
204
(defmacro not-in (item collection)
215
`(not (in ,item ,collection)))
226

@@ -44,7 +28,7 @@
4428
execute; before it are the method, the path, and the data from YAWS.
4529
4630
We need to re-form each route as a function head pattern and the
47-
expression for that pattern."
31+
expression (function to call or output to render) for that pattern."
4832
(let* (((cons tail rev-head) (lists:reverse elements))
4933
(head (lists:reverse rev-head)))
5034
(case (eval (car head))

0 commit comments

Comments
 (0)