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()}