Browse files

further simplify param & body bindings per Raynes' suggestion

  • Loading branch information...
1 parent 59e4a9c commit 28d40318073ef73cbcc25df80ecd199c6a4998fa @pandeiro committed May 11, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/noir/core.clj
@@ -104,8 +104,7 @@
"Create a function that returns html using hiccup. The function is callable with the given name. Can optionally include a docstring or metadata map, like a normal function declaration."
[fname & args]
(let [[fname args] (macro/name-with-attributes fname args)
- params (first args)
- body (rest args)]
+ [params & body] args]
`(defn ~fname ~params

0 comments on commit 28d4031

Please sign in to comment.