{# @description A date shown at the precision the record holds: the year, the month and year, or the full date. The date is passed in the `date` attribute. #} {# @prop :precision:number | default:0 | description:"How much of the date to show: 0 for the year, 1 for the month and year, 2 for the full date." #} {% if precision == 2 %} {{ date|date:"M d, Y" }} {% elif precision == 1 %} {{ date|date:"M, Y" }} {% elif precision == 0 %} {{ date|date:"Y" }} {% endif %}