(auto-update-reference file-path read-fn)
(auto-update-reference file-path read-fn watch-opts)
read-fn should be wrapped with try-catch block.
read-fn should be wrapped with try-catch block.
(custom-render-predicate handler predicate)
predicate = (fn [request])
predicate = (fn [request])
(html-response request)
(parse-parted-html text keys)
(render-html {:as params})
(wrap-asset handler key update-fn reference asset-name)
reference
is atom created by auto-update-reference
`reference` is atom created by `auto-update-reference`
(wrap-html-metadata handler
&
{:keys [kvs search excludes]
:or {kvs default-html-metadata-kvs
search (fn [request param-key]
(let [find-param (some-fn param-key)]
(find-param
request
(:web-steroid.core.alpha/path-config
request))))}})
(wrap-html-render handler key render!)
key
html contents-stringrender!
[request sb]*render?
- `key` html contents-string - `render!` [request sb] - conditional render with `*render?`
(wrap-html-render-anti-forgery-token handler
&
{:keys [name] :or {name "csrf-token"}})
edge middleware
edge middleware
(wrap-html-render-asset handler key render! reference asset-name)
reference
is atom created by auto-update-reference
key
html contents-stringrender!
[request asset sb]- `reference` is atom created by `auto-update-reference` - `key` html contents-string - `render!` [request asset sb]
(wrap-html-render-assets handler key render! reference asset-names)
reference
is atom created by auto-update-reference
key
html contents-stringrender!
[request asset sb]- `reference` is atom created by `auto-update-reference` - `key` html contents-string - `render!` [request asset sb]
(wrap-path-config-edn handler & [nf])
(wrap-path-parted-html handler)
(wrap-path-parted-html handler nf)
(wrap-path-parted-html handler nf keys)
(wrap-update-param handler key update-fn)
update-fn
[value request]
`update-fn` [value request]
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close