mirror of
https://github.com/penpot/penpot.git
synced 2026-03-11 12:56:14 +00:00
Add additional helper function for render page as svg.
This commit is contained in:
@@ -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)))))
|
||||
|
||||
Reference in New Issue
Block a user