@register.tag
def get_dict(parser, token):
    bits = token.contents.split(' ')
    return GetDict(bits[1], bits[2], ((len(bits) > 3) and bits[3]) or '')
Call {% get_dict dict key default_key %} or {% get_dict dict key %}
dataset/ETHPy150Open ilblackdragon/django-blogs/blog/templatetags/misc.py/get_dict