Liking cljdoc? Tell your friends :D

chia.static.assets


*asset-path*clj

Path where assets are to be accessed by client

Path where assets are to be accessed by client
raw docstring

*content-hashes?*clj

When true, append content-hashes to asset paths.

When true, append content-hashes to asset paths.
raw docstring

*output-dir*clj

Local directory where assets are written

Local directory where assets are written
raw docstring

asset-fileclj

(asset-file path)

asset-pathclj

(asset-path path)

Asset-path function, for use in generating HTML

Asset-path function, for use in generating HTML
raw docstring

element-tagclj

(element-tag kw-or-hiccup)

html-pageclj

(html-page {:as page-props
            :keys [lang title charset styles meta head body]
            body-scripts :scripts/body
            head-scripts :scripts/head
            :or {lang "en" charset "UTF-8"}})
(html-page title page-props)

Return HTML string for title and props

Return HTML string for title and props
raw docstring

md5clj

(md5 s)

Returns md5 hash for string

Returns md5 hash for string
raw docstring

meta-tagclj

(meta-tag k v)

public-pathclj

(public-path)

read-assetclj

(read-asset path)

Returns the contents for an asset

Returns the contents for an asset
raw docstring

script-tagclj

(script-tag str-or-map)

strip-slashclj

(strip-slash path)

style-tagclj

(style-tag str-or-map)

try-slurpclj

(try-slurp file)

write-asset!clj

(write-asset! path content)

Write content string to an asset file

Write `content` string to an asset file
raw docstring

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

× close