(->page-margin-boxes-declaration-css {:keys [margin-box] :as page-options})
(->page-margin-boxes-running-element-css {:keys [margin-box] :as page-options})
(resolve-uri base-uri uri)
default URI resolver. if the combination of base-uri + uri is found to be an absolute URI, then that absolute URI is returned. if the uri itself is an absolute URI, then base-uri is not used at all. otherwise, the relative URI (again, the combination of base-uri and uri) is resolved as a resource URL via clojure.java.io/resource.
because java.net.URI defines an 'absolute URI' as a URI that includes a scheme (e.g. http:// or file://), if you want to use an absolute path to a file on disk, you MUST prefix your uri with 'file:' else it will be treated as a relative URI and resolved via clojure.java.io/resource (likely resulting in a nil return)
default URI resolver. if the combination of base-uri + uri is found to be an absolute URI, then that absolute URI is returned. if the uri itself is an absolute URI, then base-uri is not used at all. otherwise, the relative URI (again, the combination of base-uri and uri) is resolved as a resource URL via clojure.java.io/resource. because java.net.URI defines an 'absolute URI' as a URI that includes a scheme (e.g. http:// or file://), if you want to use an absolute path to a file on disk, you MUST prefix your uri with 'file:' else it will be treated as a relative URI and resolved via clojure.java.io/resource (likely resulting in a nil return)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close