Back

compile-filter-body (clj)

(source)

function

(compile-filter-body s) (compile-filter-body s escape?)
Turns a string like foo|filter1:x|filter2:y into a fn that expects a context-map and will apply the filters one after the other to the value from the map. It will escape the end result unless the last filter is "safe" or when it's called with escape? equal to true, which is the default behavior.

Examples