Returns true when a template exists on an exact match of the provided file extension

def is_registered(ext):
    ''' Returns true when a template exists on an exact match of the provided file extension '''
    return Lean.template_mappings.has_key(ext.lower()) and len(Lean.template_mappings[ext])