Back

with-base-url (clj)

(source)

macro

(with-base-url base-url & body)
Sets a base URL that will be prepended onto relative URIs. Note that for this to work correctly, it needs to be placed outside the [[hiccup.core/html]] or [[hiccup2.core/html]] macros.

Examples