(process element dispatcher)
Process this element
, assumed to be a [HT|SG|X]ML element in Enlive
encoding, using this dispatcher
, assumed to be a function (or more
probably a map) which takes one argument, the tag of the element as
keyword, and returns a function which processes elements with that tag.
Such a function should take two arguments, the element
itself and a
dispatcher which will normally (but not necessarily) be the dispatcher
supplied to this function.
If the dispatcher returns nil
, the default behaviour is that process
is mapped over the content of the element.
If element
is not an [HT|SG|X]ML element in Enlive encoding or else a
string, returns nil
. Strings are returned unaltered.
Process this `element`, assumed to be a [HT|SG|X]ML element in Enlive encoding, using this `dispatcher`, assumed to be a function (or more probably a map) which takes one argument, the tag of the element as keyword, and returns a function which processes elements with that tag. Such a function should take two arguments, the `element` itself and a dispatcher which will normally (but not necessarily) be the `dispatcher` supplied to this function. If the dispatcher returns `nil`, the default behaviour is that `process` is mapped over the content of the element. If `element` is not an [HT|SG|X]ML element in Enlive encoding or else a string, returns `nil`. Strings are returned unaltered.
Transform the obj
which is my first argument using the dispatcher
which is my second argument.
Transform the `obj` which is my first argument using the `dispatcher` which is my second argument.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close