(if-default-handler [condition1 condition2] if-tags else-tags render)
Handler of if-condition tags. Expects conditions, enclosed tag-content, render boolean. Returns anonymous fn that will expect runtime context-map. (Separate from compile-time)
Handler of if-condition tags. Expects conditions, enclosed tag-content, render boolean. Returns anonymous fn that will expect runtime context-map. (Separate from compile-time)
(render-if-numeric render
negate?
[comparator context-key1 context-key2]
context-map
if-tags
else-tags)
(script-handler [uri & args] _ _ _)
Returns function that renders HTML <SCRIPT/>
tag. Accepts uri
that would
be used to build value for 'src' attribute of generated tag and variable
number of optional arguments. Value for 'src' attribute is built accounting
value of selmer/context
context parameter and uri
can be a string literal
or name of context parameter (filters also supported). Optional arguments are:
async
- when evaluates to logical true then 'async' attribute would be
added to generated tag.Returns function that renders HTML `<SCRIPT/>` tag. Accepts `uri` that would be used to build value for 'src' attribute of generated tag and variable number of optional arguments. Value for 'src' attribute is built accounting value of `selmer/context` context parameter and `uri` can be a string literal or name of context parameter (filters also supported). Optional arguments are: * `async` - when evaluates to logical true then 'async' attribute would be added to generated tag.
(style-handler [uri] _ _ _)
Returns function that renders HTML <LINK/>
tag. Accepts uri
that would
be used to build value for 'href' attribute of generated tag. Value for 'href'
attribute is built accounting value of selmer/context
context parameter and
uri
can be a string literal or name of context parameter (filters also
supported).
Returns function that renders HTML `<LINK/>` tag. Accepts `uri` that would be used to build value for 'href' attribute of generated tag. Value for 'href' attribute is built accounting value of `selmer/context` context parameter and `uri` can be a string literal or name of context parameter (filters also supported).
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close