Transforming Primo.json files into a sveltekit website #355
Unanswered
orangesidny
asked this question in
Q&A
Replies: 1 comment 1 reply
-
You can use the content in the primo.json file to render content, but rendering it as it appears in Primo will be more involved since you'll probably need to compile the blocks in the same way the Primo builder compiles them - check out the /compiler directory in the primo repo. I'm not sure what you mean by the second question. You could do that easily from Primo, but it sounds like you're talking about doing it on the SvelteKit site you render from the primo.json file? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am wondering if there is a way of converting the primo.json file into a Sveltekit page automatically, such as fetching the primo.json from an API. Then I will convert that data into a working website served by Sveltekit.
Furthermore are you able to take the Sveltekit website and add buttons that call premade functions? eg Email newsletter and when the user clicks submit it will run a request and store the email in a database.
Thank you
Beta Was this translation helpful? Give feedback.
All reactions