From 2a4437c0c6bb384670777b8a48e0b8e56c9889da Mon Sep 17 00:00:00 2001 From: Puru Date: Fri, 15 Sep 2023 17:20:09 +0530 Subject: [PATCH] copy: true --- .../01-svelte-components.md | 14 - .../02-template-syntax/02-basic-markup.md | 1 - .../02-template-syntax/03-logic-blocks.md | 26 +- .../02-template-syntax/04-special-tags.md | 8 +- .../05-element-directives.md | 64 ++- .../06-component-directives.md | 13 +- .../02-template-syntax/07-special-elements.md | 4 - documentation/docs/03-runtime/01-svelte.md | 13 - .../docs/03-runtime/02-svelte-store.md | 26 +- .../docs/03-runtime/03-svelte-motion.md | 7 - .../docs/03-runtime/04-svelte-transition.md | 25 +- .../docs/03-runtime/05-svelte-animate.md | 2 +- .../docs/03-runtime/07-svelte-action.md | 3 - .../04-compiler-and-api/01-svelte-compiler.md | 3 +- .../04-custom-elements-api.md | 1 - documentation/docs/05-misc/01-faq.md | 1 - documentation/docs/05-misc/03-typescript.md | 20 +- pnpm-lock.yaml | 528 +++++++++++------- sites/svelte.dev/package.json | 12 +- sites/svelte.dev/src/lib/server/renderer.js | 2 +- 20 files changed, 411 insertions(+), 362 deletions(-) diff --git a/documentation/docs/02-template-syntax/01-svelte-components.md b/documentation/docs/02-template-syntax/01-svelte-components.md index b84f4a94f3..7d4abb7b6a 100644 --- a/documentation/docs/02-template-syntax/01-svelte-components.md +++ b/documentation/docs/02-template-syntax/01-svelte-components.md @@ -7,7 +7,6 @@ Components are the building blocks of Svelte applications. They are written into All three sections — script, styles and markup — are optional. ```svelte - @@ -28,7 +27,6 @@ A ` diff --git a/documentation/docs/02-template-syntax/05-element-directives.md b/documentation/docs/02-template-syntax/05-element-directives.md index f570f5d043..f9ff1821c8 100644 --- a/documentation/docs/02-template-syntax/05-element-directives.md +++ b/documentation/docs/02-template-syntax/05-element-directives.md @@ -7,10 +7,12 @@ As well as attributes, elements can have _directives_, which control the element ## on:_eventname_ ```svelte + on:eventname={handler} ``` ```svelte + on:eventname|modifiers={handler} ``` @@ -35,7 +37,6 @@ Use the `on:` directive to listen to DOM events. Handlers can be declared inline with no performance penalty. As with attributes, directive values may be quoted for the sake of syntax highlighters. ```svelte - @@ -44,7 +45,6 @@ Handlers can be declared inline with no performance penalty. As with attributes, Add _modifiers_ to DOM events with the `|` character. ```svelte -
@@ -74,7 +74,6 @@ If the `on:` directive is used without a value, the component will _forward_ the It's possible to have multiple event listeners for the same event: ```svelte - @@ -156,7 +151,6 @@ Here we were binding to the value of a text input, which uses the `input` event. A ` @@ -167,7 +161,6 @@ A `` element behaves similarly to a checkbox group. The bound variable is an array with an entry corresponding to the `value` property of each selected `