mirror of
https://github.com/penpot/penpot.git
synced 2025-01-24 07:29:08 -05:00
Add additional helper function for render page as svg.
This commit is contained in:
parent
b6e04b8c39
commit
d40ed45a70
1 changed files with 6 additions and 0 deletions
|
@ -64,3 +64,9 @@
|
||||||
[id]
|
[id]
|
||||||
(let [page (get-in @st/state [:pages id])]
|
(let [page (get-in @st/state [:pages id])]
|
||||||
(mx/render-static-html (page-svg page))))
|
(mx/render-static-html (page-svg page))))
|
||||||
|
|
||||||
|
(defn render-page*
|
||||||
|
[id]
|
||||||
|
(let [page (get-in @st/state [:pages id])]
|
||||||
|
(when (:shapes page)
|
||||||
|
(mx/render-static-html (page-svg page)))))
|
||||||
|
|
Loading…
Add table
Reference in a new issue