ERPNext Webpage Dynamic Breadcrumbs


I have created a dynamic webpage that gets value from the url. Then on the page there are a few links to which the user will click and take them to another dynamic page. All this i am able to do without issue.

The documentation states to create breadcrumbs like:
[{“label”: _(“Jobs”), “route”:“jobs”}]

How would I go about doing this but with the url value?

This is what I tried to do:
[{“label”: _(“Portal”), “route”:“me”}, {“label”: {{ frappe.form_dict.season }}, “route”:“costing/{{ frappe.form_dict.season }}”}]

This is the error I get: ```
NameError: name ‘frappe’ is not defined

Any suggestions to handle this? Is it at all possible?