Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add lockstep-transformation macro

  • Loading branch information...
commit c657c35031ce3c10e78d208aca4be0324d60df67 1 parent daf884d
@cgrand cgrand authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  src/net/cgrand/enlive_html.clj
View
3  src/net/cgrand/enlive_html.clj
@@ -556,6 +556,9 @@
([form] form)
([form & forms] `(fn [node#] (at node# ~form ~@forms))))
+(defmacro lockstep-transformation
+ ([& forms] `(fn [node#] (at node# :lockstep {~@forms}))))
+
(defmacro snippet* [nodes args & forms]
`(let [nodes# (map annotate ~nodes)]
(fn ~args
Please sign in to comment.
Something went wrong with that request. Please try again.