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