Includes are for duplicated pieces of HTML used across templates.
Macros are when you want to parametrise the generated output.
You can use the path
type in a route annotation to access a segment of the path in the URL that includes forward slashes.
This can then be split and turned into a map to access variable path keys.
Filters can be used through an annotation or they can be declared directly in the application config section for Jinja2.