Loading…
3
Page with layout and loading
The full set of conventions. The root layout (nav bar) still wraps everything. On top of that,
this route's layout.html adds the sidebar to the left.
The loading.html renders inside the sidebar layout while
page.rs sleeps 800ms.
Files
page + loading + layoutapp/with-layout/layout.rs— renders the sidebar wrapper around child contentapp/with-layout/layout.html— sidebar template; uses{{ children|safe }}app/with-layout/page.rs— sleeps 800ms then rendersapp/with-layout/page.html— this templateapp/with-layout/loading.rs— renders the loading shellapp/with-layout/loading.html— spinner shown inside the sidebar while the page resolves