Module 7 · Lesson 211 min
Templates and loading
Once your layouts get repetitive, factor the repetition into templates. A pane_template names a reusable pane; a tab_template names a reusable tab. Define once, then use the name like a built-in node.
There are three ways to load a layout. Give a path, give a bare name to pull one from your layouts directory, or give a URL (which Zellij will ask you to approve first). Applying a layout inside a running session adds new tabs rather than replacing what's there.
Try it yourself
Do
Install a layout you can load by name
Put a layout where Zellij can find it by name.
Tick every step to confirm you did it.
Recall
Recall the slot
Templates hinge on this.
In a tab_template, what does the children keyword do?