4👍
✅
widthratio
accepts an argument as <variable>
, this stores the result of the calculation in a variable that can then be used in your template
{% widthratio item.a 1 item.b as foo %}
<h2>{{ foo|intcomma }}</h2>
Source:stackexchange.com