register = template.Library()

@register.simple_tag
def dictKeyLookup(the_dict, key):
    return the_dict.get(key, '')
How do I access dictionary keys that contain hyphens from within a Django template?