Liking cljdoc? Tell your friends :D

page-renderer.core


assoc-someclj

(assoc-some m k v)
(assoc-some m k v & kvs)

Associates a key with a value in a map, if and only if the value is not nil.

Associates a key with a value in a map, if and only if the value is not nil.
sourceraw docstring

attr-appendclj

(attr-append s [k v])
source

cache-bustclj

(cache-bust web-asset-path-or-coll)
source

cache-bust-assetsclj

(cache-bust-assets page-data)
source

cache-bust-oneclj

(cache-bust-one web-asset-path)
source

og-metaclj

(og-meta {:keys [og-image og-title og-description og-url og-type]
          :as renderable})
source

on-dom-interactive-fragmentclj

(on-dom-interactive-fragment js-snippet)
source

render-attrsclj

(render-attrs attrs)
source

render-inline-sheetsclj

(render-inline-sheets filepath-or-vec)
source

render-js-modulesclj

(render-js-modules src)
source

render-pageclj

(render-page renderable)

Render a page @param {hash-map} renderable @param {vector} renderable.body - data structure for Hiccup to render into HTML of the document's body @param {string} renderable.title - content for title tag @param {string} renderable.lang - when provided will render a meta tag and a document attribute for page language. @param {string} renderable.meta-title - content for title tag (preferred) @param {string} renderable.meta-keywords - content for title tag @param {string} renderable.meta-description - meta description @param {map} renderable.meta-props – meta which must be rendered as props {'fb:app_id' 123}

@param {string} renderable.og-title - OpenGraph title @param {string} renderable.og-description - OpenGraph description @param {string} renderable.og-image - absolute url to image for OpenGraph @param {string} renderable.og-type @param {string} renderable.og-url - OpenGraph page permalink

@param {string} renderable.twitter-site - twitter @username. Required for all Twitter meta to render @param {string} renderable.twitter-creator - twitter @username. @param {keyword} renderable.twitter-card-type - twitter card type one of #{:summary :summary_large_image :app :player} @param {string} renderable.twitter-description - twitter card description @param {string} renderable.twitter-image - twitter image link. Twitter images are useu @param {string} renderable.twitter-image-alt - twitter image alt

@param {string/boolean} renderable.manifest - truthy value will add a manifest link. If a string is passed – it'll be treated as a manifest url. Otherwise '/manifest.json' will be specified. @param {string} renderable.garden-css - data structure for Garden CSS @param {string} renderable.stylesheet - stylesheet filename, will be plugged into the head, will cause browser waiting for download. @param {string/collection<string>} renderable.stylesheet-inline - stylesheet filename, will be inlined into the head. @param {string} renderable.stylesheet-async - stylesheet filename, will be loaded asynchronously by script. @param {string} renderable.script - script name, will be loaded asynchronously @param {string} renderable.script-sync - script name, will be loaded synchronously @param {string} renderable.js-module - entry point for JS modules. If you prefer your scripts to be served as modules @param {string} renderable.on-dom-interactive-js - a js snippet to run once DOM is interactive or ready. @param {string} renderable.head-tags - data structure to render into HTML of the document's head

Render a page
@param {hash-map} renderable
@param {vector} renderable.body - data structure for Hiccup to render into HTML of the document's body
@param {string} renderable.title - content for title tag
@param {string} renderable.lang - when provided will render a meta tag and a document attribute
 for page language.
@param {string} renderable.meta-title - content for title tag (preferred)
@param {string} renderable.meta-keywords - content for title tag
@param {string} renderable.meta-description - meta description
@param {map}    renderable.meta-props – meta which must be rendered as props
 {'fb:app_id' 123}

@param {string} renderable.og-title - OpenGraph title
@param {string} renderable.og-description - OpenGraph description
@param {string} renderable.og-image - absolute url to image for OpenGraph
@param {string} renderable.og-type
@param {string} renderable.og-url - OpenGraph page permalink

@param {string}  renderable.twitter-site - twitter @username. Required for all Twitter meta to render
@param {string}  renderable.twitter-creator - twitter @username.
@param {keyword} renderable.twitter-card-type - twitter card type
 one of #{:summary  :summary_large_image :app :player}
@param {string}  renderable.twitter-description - twitter card description
@param {string}  renderable.twitter-image - twitter image link. Twitter images are useu
@param {string}  renderable.twitter-image-alt - twitter image alt

@param {string/boolean} renderable.manifest - truthy value will add a manifest link.
 If a string is passed – it'll be treated as a manifest url. Otherwise '/manifest.json'
 will be specified.
@param {string} renderable.garden-css - data structure for Garden CSS
@param {string} renderable.stylesheet - stylesheet filename, will be plugged into the head, will cause
 browser waiting for download.
@param {string/collection<string>} renderable.stylesheet-inline - stylesheet filename, will be inlined into the head.
@param {string} renderable.stylesheet-async - stylesheet filename, will be loaded asynchronously by script.
@param {string} renderable.script - script name, will be loaded asynchronously
@param {string} renderable.script-sync - script name, will be loaded synchronously
@param {string} renderable.js-module - entry point for JS modules. If you prefer your scripts to be served as modules
@param {string} renderable.on-dom-interactive-js - a js snippet to run once DOM is interactive or ready.
@param {string} renderable.head-tags - data structure to render into HTML of the document's head
sourceraw docstring

render-scriptsclj

(render-scripts script-sync async?)
source

render-scripts--asyncclj

(render-scripts--async script-name)
source

render-scripts--syncclj

(render-scripts--sync script-name)
source

render-stylesheetsclj

(render-stylesheets stylesheets)
source

respond-pageclj

(respond-page renderable)

Renders a page and returns basic Ring response map

Renders a page and returns basic Ring response map
sourceraw docstring

twitter-metaclj

(twitter-meta {:keys [twitter-site twitter-card-type twitter-title
                      twitter-creator twitter-description twitter-image
                      twitter-image-alt]
               :as renderable})
source

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

× close