Liking cljdoc? Tell your friends :D

c3kit.wire.assets


-raw-add-fingerprintclj

(-raw-add-fingerprint path)
(-raw-add-fingerprint path prefix)

add-fingerprintclj

Returns a path with the resources fingerprint (checksum) in the filename. Using fingerprinted paths prevents the browser from using previously cached versions of your assets.

(add-fingerprint "/stylesheets/my.css") ;=> /stylesheets/my.fp084994104d0fdf138f53f0e4d94a5486.css

The path must exist in the classpath.

The prefix param defaults to "public". This is added to the beginning of the path when loaded form the class path. e.g. If the asset /stylesheets/my.css is being loaded, it likely exists inside /public/stylesheets/my.css.

Returns a path with the resources fingerprint (checksum) in the filename.
Using fingerprinted paths prevents the browser from using previously cached versions
of your assets.

  (add-fingerprint "/stylesheets/my.css") ;=> /stylesheets/my.fp084994104d0fdf138f53f0e4d94a5486.css

The path must exist in the classpath.

The prefix param defaults to "public".  This is added to the beginning of the path when
loaded form the class path.  e.g. If the asset /stylesheets/my.css is being loaded, it likely
exists inside /public/stylesheets/my.css.
raw docstring

add-fingerprint-to-pathclj

(add-fingerprint-to-path hash file-path)

fingerprinted-regexclj


path-regexclj


remove-fingerprintclj

(remove-fingerprint path)

resolve-fingerprint-inclj

(resolve-fingerprint-in request)

wrap-asset-fingerprintclj

(wrap-asset-fingerprint handler)

Middleware the looks for fingerprinted asset requests and removes the fingerprints.

e.g. requests for /stylesheets/my.fp084994104d0fdf138f53f0e4d94a5486.css turn into requests for /stylesheets/my.css

Middleware the looks for fingerprinted asset requests and removes the fingerprints.

e.g. requests for /stylesheets/my.fp084994104d0fdf138f53f0e4d94a5486.css turn into
requests for /stylesheets/my.css
raw docstring

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

× close