'Returns the unique hash key for this template name.'

def get_cache_key(self, name, filename=None):

    hash = sha1(name.encode('utf-8'))
    if (filename is not None):
        if isinstance(filename, unicode):
            filename = filename.encode('utf-8')
        hash.update(('|' + filename))
    return hash.hexdigest()
