{#if head}
{@render head()}
{:else}
{@render headEnd?.()}
{/if} {@render belowHead?.()}
{@render children()}
{#if foot}
{@render foot()}
{/if}