diff options
author | Colin Okay <okay@toyful.space> | 2022-02-08 11:47:07 -0600 |
---|---|---|
committer | Colin Okay <okay@toyful.space> | 2022-02-08 11:47:07 -0600 |
commit | ca67709947d065784b219f184a17ee20fcb38b3b (patch) | |
tree | e4f2a78e2f7971a17d8778e13303cce149648259 /lazybones.lisp | |
parent | ddbdb583e0cb309db5d5b03cc5bcf5216951d389 (diff) |
adding route variables to the documentation generator
Diffstat (limited to 'lazybones.lisp')
-rw-r--r-- | lazybones.lisp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lazybones.lisp b/lazybones.lisp index 148cd05..5f46a83 100644 --- a/lazybones.lisp +++ b/lazybones.lisp @@ -285,11 +285,12 @@ Returns NIL on failure." (list (string-upcase var-name) (read-from-string (first decoder?))) (list (string-upcase var-name)))))) -(defun route-variables (route) - (loop for term in route +(defun route-variables (pattern) + (loop for term in pattern when (listp term) collect (first term))) + (defun run-endpoint (endpoint args request response app) "Bind dynamic variables *request* *response* and *app* before applying HANDLER-FUNCTION slot of ENDPOINT to the ARGS list." |