Liking cljdoc? Tell your friends :D

web-steroid.core.alpha


auto-update-referenceclj

(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.
raw docstring

custom-render-predicateclj

(custom-render-predicate handler predicate)

predicate = (fn [request])

predicate = (fn [request])
raw docstring

default-html-metadata-kvsclj


default-parted-html-keysclj


html-responseclj

(html-response request)

parse-parted-htmlclj

(parse-parted-html text keys)

render-htmlclj

(render-html {:as params})

wrap-assetclj

(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`
raw docstring

wrap-html-metadataclj

(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-renderclj

(wrap-html-render handler key render!)
  • key html contents-string
  • render! [request sb]
  • conditional render with *render?
- `key` html contents-string
- `render!` [request sb]
- conditional render with `*render?`
raw docstring

wrap-html-render-anti-forgery-tokenclj

(wrap-html-render-anti-forgery-token handler
                                     &
                                     {:keys [name] :or {name "csrf-token"}})

edge middleware

edge middleware
raw docstring

wrap-html-render-assetclj

(wrap-html-render-asset handler key render! reference asset-name)
  • reference is atom created by auto-update-reference
  • key html contents-string
  • render! [request asset sb]
- `reference` is atom created by `auto-update-reference`
- `key` html contents-string
- `render!` [request asset sb]
raw docstring

wrap-html-render-assetsclj

(wrap-html-render-assets handler key render! reference asset-names)
  • reference is atom created by auto-update-reference
  • key html contents-string
  • render! [request asset sb]
- `reference` is atom created by `auto-update-reference`
- `key` html contents-string
- `render!` [request asset sb]
raw docstring

wrap-path-config-ednclj

(wrap-path-config-edn handler & [nf])

wrap-path-parted-htmlclj

(wrap-path-parted-html handler)
(wrap-path-parted-html handler nf)
(wrap-path-parted-html handler nf keys)

wrap-update-paramclj

(wrap-update-param handler key update-fn)

update-fn [value request]

`update-fn` [value request]
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close