chore: remove bracket syntax for css classes in html
This commit is contained in:
parent
12ed6f0e34
commit
1847cc96ef
32 changed files with 104 additions and 160 deletions
|
@ -1,13 +1,13 @@
|
|||
{% macro stars(number) %}
|
||||
{% set filledStars = number %}
|
||||
{% set emptyStars = 5 - number %}
|
||||
<ul class="[ stars ] [ flex list-none p-0 mb-0 text-primary ]"
|
||||
<ul class="stars flex list-none p-0 mb-0 text-primary"
|
||||
aria-description="{{ number }} out of 5 stars">
|
||||
{% for i in range(0, filledStars) %}
|
||||
<li class="[ star-filled ]">{% include "svgs/star.svg" %}</li>
|
||||
<li class="star-filled">{% include "svgs/star.svg" %}</li>
|
||||
{% endfor %}
|
||||
{% for i in range(0, emptyStars) %}
|
||||
<li class="[ star-empty ]">{% include "svgs/star-empty.svg" %}</li>
|
||||
<li class="star-empty">{% include "svgs/star-empty.svg" %}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endmacro %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue