From 9be2d95c3f58c8a6d915ca0f5a9f6168dff21724 Mon Sep 17 00:00:00 2001 From: Simon Holthausen Date: Wed, 18 Dec 2024 22:04:43 +0100 Subject: [PATCH] feat: incorporate `` into templates Related to https://github.com/sveltejs/kit/pull/13065 --- .changeset/forty-roses-occur.md | 5 +++++ packages/create/templates/demo/src/app.html | 2 +- packages/create/templates/demo/src/routes/+layout.svelte | 2 ++ packages/create/templates/library/src/app.html | 2 +- .../create/templates/library/src/routes/+layout.svelte | 8 ++++++++ packages/create/templates/minimal/src/app.html | 2 +- .../create/templates/minimal/src/routes/+layout.svelte | 8 ++++++++ 7 files changed, 26 insertions(+), 3 deletions(-) create mode 100644 .changeset/forty-roses-occur.md create mode 100644 packages/create/templates/library/src/routes/+layout.svelte create mode 100644 packages/create/templates/minimal/src/routes/+layout.svelte diff --git a/.changeset/forty-roses-occur.md b/.changeset/forty-roses-occur.md new file mode 100644 index 00000000..099e649d --- /dev/null +++ b/.changeset/forty-roses-occur.md @@ -0,0 +1,5 @@ +--- +'@sveltejs/create': minor +--- + +feat: incorporate `` into templates diff --git a/packages/create/templates/demo/src/app.html b/packages/create/templates/demo/src/app.html index 77a5ff52..ee5e8ca1 100644 --- a/packages/create/templates/demo/src/app.html +++ b/packages/create/templates/demo/src/app.html @@ -1,5 +1,5 @@ - + diff --git a/packages/create/templates/demo/src/routes/+layout.svelte b/packages/create/templates/demo/src/routes/+layout.svelte index 330f10c0..be2b3ec7 100644 --- a/packages/create/templates/demo/src/routes/+layout.svelte +++ b/packages/create/templates/demo/src/routes/+layout.svelte @@ -6,6 +6,8 @@ let { children } = $props(); + +
diff --git a/packages/create/templates/library/src/app.html b/packages/create/templates/library/src/app.html index f22aeaad..39edfb90 100644 --- a/packages/create/templates/library/src/app.html +++ b/packages/create/templates/library/src/app.html @@ -1,5 +1,5 @@ - + diff --git a/packages/create/templates/library/src/routes/+layout.svelte b/packages/create/templates/library/src/routes/+layout.svelte new file mode 100644 index 00000000..a56f8acc --- /dev/null +++ b/packages/create/templates/library/src/routes/+layout.svelte @@ -0,0 +1,8 @@ + + + + +{@render children()} diff --git a/packages/create/templates/minimal/src/app.html b/packages/create/templates/minimal/src/app.html index 77a5ff52..ee5e8ca1 100644 --- a/packages/create/templates/minimal/src/app.html +++ b/packages/create/templates/minimal/src/app.html @@ -1,5 +1,5 @@ - + diff --git a/packages/create/templates/minimal/src/routes/+layout.svelte b/packages/create/templates/minimal/src/routes/+layout.svelte new file mode 100644 index 00000000..a56f8acc --- /dev/null +++ b/packages/create/templates/minimal/src/routes/+layout.svelte @@ -0,0 +1,8 @@ + + + + +{@render children()}