(interpolate template params)Replace {placeholder} patterns in a template string with values from params map. Missing keys are left as-is.
Replace {placeholder} patterns in a template string with values from params map.
Missing keys are left as-is.(normalize key-val params-raw)Normalize raw attribute values into a model map.
Normalize raw attribute values into a model map.
(parse-params s)Parse a JSON string into a ClojureScript map. Returns {} on nil, empty, or invalid JSON.
Parse a JSON string into a ClojureScript map.
Returns {} on nil, empty, or invalid JSON.(resolve-key translations key-str)Walk a dot-notation key path through a JS object. Returns nil if any segment is missing. E.g. (resolve-key obj "greeting.hello") -> (gobj/get (gobj/get obj "greeting") "hello")
Walk a dot-notation key path through a JS object. Returns nil if any segment is missing. E.g. (resolve-key obj "greeting.hello") -> (gobj/get (gobj/get obj "greeting") "hello")
(resolve-translation translations fallback-translations key-str params)Full resolution pipeline: look up key in current translations, fall back to fallback translations, interpolate with params, fall back to the raw key string.
Full resolution pipeline: look up key in current translations, fall back to fallback translations, interpolate with params, fall back to the raw key string.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |