2 Penfield supplies two template filters to handle common use cases for blogs and newsletters.
5 from django import template
6 from django.utils.dates import MONTHS, MONTHS_AP
9 register = template.Library()
14 """Returns the name of a month with the supplied numeric value."""
27 def apmonthname(value):
28 """Returns the Associated Press abbreviated month name for the supplied numeric value."""
35 return MONTHS_AP[value]