-
-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathspace-in-blocks-input.svelte
46 lines (41 loc) · 1.2 KB
/
space-in-blocks-input.svelte
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<script>
const foo = 'foo';
let text = '';
let value = '';
let input;
const myClass = 'my-class';
const id = 'id';
const attrs = {};
const bar = '<div></div>';
const o1 = 1,
o2 = 2;
const expression = true;
const list = [];
</script>
<!-- prettier-ignore -->
<div>
{ foo }
<input bind:value={ text } this={ input } class="foo { myClass }" />
<input bind:value { id } />
<input { ...attrs } />
{ @html bar }
{ @debug o1 }
{ @debug o1, o2 }
{ #if expression }...{ /if }
{ #if expression }...{ :else if expression }...{ /if }
{ #if expression }...{ :else }...{ /if }
{ #if expression }{ :else }{ /if }
{ #each list as item }...{ /each }
{ #each list as item, index }...{ /each }
{ #each list as item (item.key) }...{ /each }
{ #each list as item, index (item.key) }...{ /each }
{ #each list as item }...{ :else }...{ /each }
{ #await expression }...{ :then name }...{ :catch name }...{ /await }
{ #await expression }...{ :then name }...{ /await }
{ #await expression then name }...{ /await }
{ #await expression catch name }...{ /await }
{ #await expression then }...{ /await }
{ #await expression catch }...{ /await }
{ #await expression }...{ :then}...{ :catch}...{ /await }
{ #key expression }...{ /key }
</div>