(add-template class template)adds a template to the registry
(add-template :error/test "The error is {{error/value}}")
adds a template to the registry
(add-template :error/test "The error is {{error/value}}")(has-template? class)checks if template is registered
(has-template? :error/test)
checks if template is registered (has-template? :error/test)
(list-templates)lists all registered templates
lists all registered templates
(remove-template class)removes a template from the registry
removes a template from the registry
(render-message {:log/keys [class template] :as item})returns a message given a :log/class or :log/template
(render-message {:log/class :error/test :error/value "HELLO"}) => "The error is HELLO"
returns a message given a :log/class or :log/template
(render-message {:log/class :error/test
:error/value "HELLO"})
=> "The error is HELLO"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 |