mirror of
https://github.com/penpot/penpot.git
synced 2025-01-09 00:10:11 -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]
|
||||
(let [page (get-in @st/state [:pages id])]
|
||||
(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…
Reference in a new issue