Back

set-missing-value-formatter! (clj)

(source)

function

(set-missing-value-formatter! missing-value-fn & {:keys [filter-missing-values], :or {filter-missing-values false}})
Takes a function of two arguments which is called on a missing value. The function should return the value to be output in place of an empty string (which is the default from 'default-missing-value-formatter'). Call with named argument :filter-missing-values true to force filtering of missing values (although for most use cases this will not make sense). Arguments to missing-value-fn: tag - map with data for the tag being evaluated. Contains the key :tag-type with the value :filter or :expr (for filter or expression tag types. For :filter: tag-value - the contents of the filter tag as a string. For :expr: tag-name - the name of the expression. args - the args provided to the expression. context-map - the context-map provided to the render function.

Examples