Return the resolved layout with all hooks applied. This is the canonical way to obtain the app's layout — it calls the layout function (if callable), includes extra components, and runs layout hooks.
(self)
| 942 | |
| 943 | @with_app_context |
| 944 | def get_layout(self): |
| 945 | """Return the resolved layout with all hooks applied. |
| 946 | |
| 947 | This is the canonical way to obtain the app's layout — it |
| 948 | calls the layout function (if callable), includes extra |
| 949 | components, and runs layout hooks. |
| 950 | """ |
| 951 | layout = self._layout_value() |
| 952 | for hook in self._hooks.get_hooks("layout"): |
| 953 | layout = hook(layout) |
| 954 | return layout |
| 955 | |
| 956 | def serve_layout(self): |
| 957 | # TODO - Set browser cache limit - pass hash into frontend |
no test coverage detected