[Tera] How to access fields of `__tera_context`?

Hello!

When I tried to access __tera_context["current_path"] (using {{ __tera_context["current_path"] }}) it gave following error:

Variable `__tera_context["current_path"]` not found in context

But I can see "current_path" field in __tera_context (using {{ __tera_context }}).

Thanks!

To print __tera_context["current_path"] you print current_path. i.e.

{{current_path}}

:wink:

__tera_context is a magic variable (maybe more of a function) that prints everything in the global scope. To access anything there, you just use it.