(if-condition-fn params)
Compiles an if form into a function that takes a context-map, and returns true or false.
Compiles an if form into a function that takes a context-map, and returns true or false.
(numeric-expression-evaluation [comparator context-key1 context-key2])
(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