CrossClj

1.4.9 docs

SourceDocs



RECENT
    VARS
    enlive-transform
    hiccup-transform
    map-preserving-meta
    merge-meta
    transform

    « Index of all namespaces of this project

    Functions to transform parse trees
    
    Private
    (enlive-transform transform-map parse-tree)
    Private
    (hiccup-transform transform-map parse-tree)
    Private
    (map-preserving-meta f l)
    (merge-meta obj metamap)
    This variation of the merge-meta in gll does nothing if obj is not
    something that can have a metamap attached.
    (transform transform-map parse-tree)
    Takes a transform map and a parse tree (or seq of parse-trees).
    A transform map is a mapping from tags to 
    functions that take a node's contents and return
    a replacement for the node, i.e.,
    {:node-tag (fn [child1 child2 ...] node-replacement),
     :another-node-tag (fn [child1 child2 ...] node-replacement)}