@@ -23,7 +23,7 @@ Await blocks allow you to branch on the three possible states of a Promise — p
23
23
\`{#await expression}...{:then name}...{/await}\`\\
24
24
\`{#await expression then name}...{/await}\`\\
25
25
\\
26
- https://svelte.dev/docs#template-syntax- await
26
+ https://svelte.dev/docs/svelte/ await
27
27
` ,
28
28
each : `\`{#each ...}\`\\
29
29
Iterating over lists of values can be done with an each block.
@@ -33,7 +33,7 @@ Iterating over lists of values can be done with an each block.
33
33
\`{#each expression as name, index (key)}...{/each}\`\\
34
34
\`{#each expression as name}...{:else}...{/each}\`\\
35
35
\\
36
- https://svelte.dev/docs#template-syntax- each
36
+ https://svelte.dev/docs/svelte/ each
37
37
` ,
38
38
if : `\`{#if ...}\`\\
39
39
Content that is conditionally rendered can be wrapped in an if block.
@@ -42,7 +42,7 @@ Content that is conditionally rendered can be wrapped in an if block.
42
42
\`{#if expression}...{:else if expression}...{/if}\`\\
43
43
\`{#if expression}...{:else}...{/if}\`\\
44
44
\\
45
- https://svelte.dev/docs#template-syntax- if
45
+ https://svelte.dev/docs/svelte/ if
46
46
` ,
47
47
key : `\`{#key expression}...{/key}\`\\
48
48
Key blocks destroy and recreate their contents when the value of an expression changes.\\
@@ -51,14 +51,22 @@ When used around components, this will cause them to be reinstantiated and reini
51
51
#### Usage:
52
52
\`{#key expression}...{/key}\`\\
53
53
\\
54
- https://svelte.dev/docs#template-syntax- key
54
+ https://svelte.dev/docs/svelte/ key
55
55
` ,
56
56
snippet : `\`{#snippet identifier(parameter)}...{/snippet}\`\\
57
57
Snippets allow you to create reusable UI blocks you can render with the {@render ...} tag.
58
58
They also function as slot props for components.
59
+ #### Usage:
60
+ \`{#snippet identifier(parameter)}...{/snippet}\`\\
61
+ \\
62
+ https://svelte.dev/docs/svelte/snippet
59
63
` ,
60
64
render : `\`{@render ...}\`\\
61
65
Renders a snippet with the given parameters.
66
+ #### Usage:
67
+ \`{@render identifier(parameter)}\`\\
68
+ \\
69
+ https://svelte.dev/docs/svelte/@render
62
70
` ,
63
71
html :
64
72
`\`{@html ...}\`\\
@@ -72,7 +80,7 @@ If the data comes from an untrusted source, you must sanitize it, ` +
72
80
#### Usage:
73
81
\`{@html expression}\`\\
74
82
\\
75
- https://svelte.dev/docs#template-syntax- html
83
+ https://svelte.dev/docs/svelte/@ html
76
84
` ,
77
85
debug :
78
86
`\`{@debug ...}\`\\
@@ -84,14 +92,14 @@ It accepts a comma-separated list of variable names (not arbitrary expressions).
84
92
\`{@debug}\`
85
93
\`{@debug var1, var2, ..., varN}\`\\
86
94
\\
87
- https://svelte.dev/docs#template-syntax- debug
95
+ https://svelte.dev/docs/svelte/@ debug
88
96
` ,
89
97
const : `\`{@const ...}\`\\
90
98
Defines a local constant}\\
91
99
#### Usage:
92
100
\`{@const a = b + c}\`\\
93
101
\\
94
- https://svelte.dev/docs/special-tags# const
102
+ https://svelte.dev/docs/svelte/@ const
95
103
`
96
104
} ;
97
105
0 commit comments