Django template variable in html
i want to adjust the width of processbar with variable cresource.cpu_avail_percent, how can i add style tag
my code
{% for cresource in c_resources %}
<div class="progress-bar progress-bar-striped progress-bar-animated bg-success" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width:{{cresource.cpu_avail_percent}}%;">
</div>
{% endfor %}
i'm using django 3.2.6