Closed dcsan closed 2 months ago
I'd like to generate a pure SVG file without and <html> wrapper. eg from a +page.server.. URL
<html>
+page.server..
(actually trying to use the SVG as a template to import into an <mg tag to allow pan/zoom. )
<mg
can I use this plugin to do that with sveltekit?
I've placed any layout files out of the page and also tried removing anything from app.html but I still get a wrapper around any content.
layout
app.html
forgive me if this is a bit more of a general sveltekit question and thanks for any help!
I guess you could just create a +server.js and simply return a string with the image/svg+xml content type set in the reponse header. But that's not related to this plugin so...
+server.js
image/svg+xml
I'd like to generate a pure SVG file without and
<html>
wrapper. eg from a+page.server..
URL(actually trying to use the SVG as a template to import into an
<mg
tag to allow pan/zoom. )can I use this plugin to do that with sveltekit?
I've placed any
layout
files out of the page and also tried removing anything fromapp.html
but I still get a wrapper around any content.forgive me if this is a bit more of a general sveltekit question and thanks for any help!