diff --git a/packages/svelte-vscode/src/sveltekit/generateFiles/templates/layout.ts b/packages/svelte-vscode/src/sveltekit/generateFiles/templates/layout.ts index 8a1dac68d..d078e334f 100644 --- a/packages/svelte-vscode/src/sveltekit/generateFiles/templates/layout.ts +++ b/packages/svelte-vscode/src/sveltekit/generateFiles/templates/layout.ts @@ -5,29 +5,38 @@ const defaultScriptTemplate = ` /** @type {import('./$types').LayoutData} */ export let data; + + `; const tsSv5ScriptTemplate = ` + +{@render children()} `; const tsScriptTemplate = ` + + `; const jsSv5ScriptTemplate = ` + +{@render children()} `; const scriptTemplate: ReadonlyMap = new Map([ diff --git a/packages/svelte-vscode/src/sveltekit/generateFiles/templates/page.ts b/packages/svelte-vscode/src/sveltekit/generateFiles/templates/page.ts index 3015afdbb..ecbbfa57f 100644 --- a/packages/svelte-vscode/src/sveltekit/generateFiles/templates/page.ts +++ b/packages/svelte-vscode/src/sveltekit/generateFiles/templates/page.ts @@ -10,22 +10,22 @@ const defaultScriptTemplate = ` const tsSv5ScriptTemplate = ` `; const tsScriptTemplate = ` `; const jsSv5ScriptTemplate = ` `;