def calendar(format, *args, **kwargs):
    cal = HTMLCalendar(kwargs.pop('firstweekday', 0))
    return getattr(cal, 'format%s' % format)(*args, **kwargs)
Creates a formatted ``HTMLCalendar``. 
dataset/ETHPy150Open justquick/django-native-tags/native_tags/contrib/cal.py/calendar