I'm trying to access a property with a $ in its name in a django template. Unfortunately I have no control over filters nor over the variable names.
The object is structured as follows:
{
"title": "Some title",
"metadata": {
"$price": 9.99,
"$inventory_policy": 1
}
}
I am trying to access {{ item.metatadata.$price }}, but the template builder crashes with an unspecified error.
I already tried the workarounds for python templates, but they crash as well:
{{ item.metatadata.$$price }}
{{ item.metatadata.${price} }}
For future reference, this is in a Klaviyo template.