{#if isPublic(page.url.pathname)} {@render children()} {:else if ready && session.isAuthenticated} {:else if ready} {@render children()} {:else}