about
This is a simple example of how to re-use template code in PyView.
This page includes a navbar that is defined in a separate file, and passes the user's avatar as a parameter:
{% include "includes/_navbar.html" with avatar_url=user.avatar_url %}
Templates do have access to the parent template context, but it can be useful to have template parameters (e.g. using a template in a for loop and passing each element as a parameter).
You read more about the include tag feature in the template engine documentation.