I want to use the 'category' variable which is used in catalog/view/theme/theme_name/template/product/category.twig in another twig template I am editing but I can't figure out how to use it in the file.
I added the following code to the twig template I'm trying to work on to see which variables were available to the template:
<ol>
{% for key, value in _context %}
<li>{{ key }}</li>
{% endfor %}
</ol>
However, the 'category' variable wasn't listed on the page, only the 'category_text' variable. How can I use the category variable in my twig template?
Does anyone know how to do this? Thanks for the help!