Back
script-handler (clj)
(source)function
(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.
* `defer` - when evaluates to logical true then 'defer' attribute would be
added to generated tag.