mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-22 15:15:19 +00:00
Add attribute quotes to generated App.svelte
This commit is contained in:
@@ -251,11 +251,11 @@ function generate_app(manifest_data: ManifestData, path_to_routes: string) {
|
|||||||
|
|
||||||
let l = max_depth;
|
let l = max_depth;
|
||||||
|
|
||||||
let pyramid = `<svelte:component this={level${l}.component} {...level${l}.props}/>`;
|
let pyramid = `<svelte:component this="{level${l}.component}" {...level${l}.props}/>`;
|
||||||
|
|
||||||
while (l-- > 1) {
|
while (l-- > 1) {
|
||||||
pyramid = `
|
pyramid = `
|
||||||
<svelte:component this={level${l}.component} segment={segments[${l}]} {...level${l}.props}>
|
<svelte:component this="{level${l}.component}" segment="{segments[${l}]}" {...level${l}.props}>
|
||||||
{#if level${l + 1}}
|
{#if level${l + 1}}
|
||||||
${pyramid.replace(/\n/g, '\n\t\t\t\t\t')}
|
${pyramid.replace(/\n/g, '\n\t\t\t\t\t')}
|
||||||
{/if}
|
{/if}
|
||||||
@@ -281,7 +281,7 @@ function generate_app(manifest_data: ManifestData, path_to_routes: string) {
|
|||||||
setContext(CONTEXT_KEY, stores);
|
setContext(CONTEXT_KEY, stores);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Layout segment={segments[0]} {...level0.props}>
|
<Layout segment="{segments[0]}" {...level0.props}>
|
||||||
{#if error}
|
{#if error}
|
||||||
<Error {error} {status}/>
|
<Error {error} {status}/>
|
||||||
{:else}
|
{:else}
|
||||||
|
|||||||
Reference in New Issue
Block a user