Your scenes render inside an iframe in a blank HTML page called the canvas. This page has no default styling, and comes as bare as possible out of the package. If you need to make more adjustments to the canvas, such as adding meta tags, global JavaScripts etc, you can provide your own canvas:
(require '[portfolio.ui :as ui])
(ui/start!
{:config {:canvas-path "/my/custom/portfolio.html"}})
There are no requirements for how you format this file. Portfolio will add a div
with id "canvas"
to it, in which it will render the scene. If there already is
an element with that id, it will be used instead.
Can you improve this documentation?Edit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
Ctrl+k | Jump to recent docs |
← | Move to previous article |
→ | Move to next article |
Ctrl+/ | Jump to the search field |