mirror of https://github.com/sveltejs/svelte
chore: Switch `payload.out` to an array (#16428)
* chore: Switch `payload.out` to an array * Apply suggestions from code review * changesetpull/16435/head
parent
c2da1ebb85
commit
f5db130e2d
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
chore: Switch `payload.out` to an array
|
@ -1,5 +1,5 @@
|
||||
import * as $ from 'svelte/internal/server';
|
||||
|
||||
export default function Functional_templating($$payload) {
|
||||
$$payload.out += `<h1>hello</h1> <div class="potato"><p>child element</p> <p>another child element</p></div>`;
|
||||
$$payload.out.push(`<h1>hello</h1> <div class="potato"><p>child element</p> <p>another child element</p></div>`);
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
import * as $ from 'svelte/internal/server';
|
||||
|
||||
export default function Hello_world($$payload) {
|
||||
$$payload.out += `<h1>hello world</h1>`;
|
||||
$$payload.out.push(`<h1>hello world</h1>`);
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
import * as $ from 'svelte/internal/server';
|
||||
|
||||
export default function Hmr($$payload) {
|
||||
$$payload.out += `<h1>hello world</h1>`;
|
||||
$$payload.out.push(`<h1>hello world</h1>`);
|
||||
}
|
@ -1,7 +1,7 @@
|
||||
import * as $ from 'svelte/internal/server';
|
||||
|
||||
export default function Purity($$payload) {
|
||||
$$payload.out += `<p>0</p> <p>${$.escape(location.href)}</p> `;
|
||||
$$payload.out.push(`<p>0</p> <p>${$.escape(location.href)}</p> `);
|
||||
Child($$payload, { prop: encodeURIComponent('hello') });
|
||||
$$payload.out += `<!---->`;
|
||||
$$payload.out.push(`<!---->`);
|
||||
}
|
Loading…
Reference in new issue