0
Fork 0
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:
Andrey Antukh 2016-11-10 18:35:23 +01:00
parent b6e04b8c39
commit d40ed45a70
No known key found for this signature in database
GPG key ID: 4DFEBCB8316A8B95

View file

@ -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)))))