Guest User

Untitled

a guest
Jul 22nd, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. (defmacro page [name-kw fndef & links]
  2. (let [map `{:page ~name-kw
  3. :fn ~fndef}
  4. fn-args (second fndef)
  5. args (if (empty? fn-args) {} `{:req-args ~(map keyword fn-args)})
  6. links (if (empty? links) {} `{:links ~(vec links)})]
  7. (merge map args links)))
Add Comment
Please, Sign In to add comment