'What do %svelte.head% and %svelte.body% represent?
Absolute noob to Svelte workflows, but it's been strongly recommended by people I respect and I want to get to grips with it.
Kind of pretty clear so far, but when I worked through the SvelteKit setup and docs, I wasn't able to understand exactly what those two tags mean in the app.html
Solution 1:[1]
These symbols are templates for the project. %svelte.head% is replaced with the contents of the special svelte:head tag and %svelte.body% is replace by anything you have in your svelte file for that route and the contents of the svelte:body tag. Whenever your project is compiled, it will replace the template tags with their corresponding special tag.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Justiniscoding |
