'Returns the template path for the given mode.'

def get_template_name(self, mode):

    try:
        template = getattr(self, (u'template_name_%s' % mode))
        if template:
            return template
    except AttributeError:
        pass
    return (u'compressor/%s_%s.html' % (self.type, mode))
