mirror of https://github.com/sveltejs/svelte
fix parsing of expressions wrapped in parentheses (#534)
parent
8e87c688ae
commit
a5dce59735
@ -0,0 +1,16 @@
|
||||
export default {
|
||||
data: {
|
||||
a: 'foo',
|
||||
b: true,
|
||||
c: [ 1, 2, 3 ],
|
||||
},
|
||||
|
||||
html: `
|
||||
<span>foo</span>
|
||||
<span class="foo"></span>
|
||||
<span>true</span>
|
||||
<span>1</span>
|
||||
<span>2</span>
|
||||
<span>3</span>
|
||||
`
|
||||
};
|
@ -0,0 +1,8 @@
|
||||
<span>{{ (a) }}</span>
|
||||
<span class='{{ (a) }}'></span>
|
||||
{{#if (b) }}
|
||||
<span>true</span>
|
||||
{{/if}}
|
||||
{{#each (c) as x}}
|
||||
<span>{{x}}</span>
|
||||
{{/each}}
|
Loading…
Reference in new issue