Providing a custom Layout
I tried this example to start working on custom layouts, but I am unsure if that's working for me (e.g., the print statement doesn't get executed). Do you have to do anything special to "register" this
Layout
, or is adding this to my __init__.py
, like what I am doing now, sufficient?![No description](https://cdn.answeroverflow.com/1255642660782346291/CleanShot_2024-06-26_at_17.49.31.png)
1 Reply
Hey! Whether adding it to your
__init__.py
works depends on how you do routing. Try placing the Layout
component in the same place where your root route (or whatever routes you want to apply the layout to) Page
component is