{% macro stars(rating, detailpage=false, aggregate=True) %} {% set rating = rating|round %} {% set rating_itemprop = 'ratingValue' if aggregate else 'reviewRating' %} {{ _('Rated {stars} out of {maxstars} stars', stars='' + rating + '', maxstars='5') }} {% endmacro %}