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.
sourceraw docstring

custom-render-predicateclj

(custom-render-predicate handler predicate)

predicate = (fn [request])

predicate = (fn [request])
sourceraw docstring

default-html-metadata-kvsclj

source

default-parted-html-keysclj

source

html-responseclj

(html-response request)
source

parse-parted-htmlclj

(parse-parted-html text keys)
source

render-htmlclj

(render-html {:as params})
source

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`
sourceraw 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))))}})
source

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?`
sourceraw docstring

wrap-html-render-anti-forgery-tokenclj

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

edge middleware

edge middleware
sourceraw 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]
sourceraw 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]
sourceraw docstring

wrap-path-config-ednclj

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

wrap-path-parted-htmlclj

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

wrap-update-paramclj

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

update-fn [value request]

`update-fn` [value request]
sourceraw docstring

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

× close