@classmethod
def iter_tags_to_minify(cls, cssless, js):
    """ Safely iterate html tags to minify, if tag's enabled.

        Parameters
        ----------
            cssless: bool
                to enable css and less.
            js: bool
                to enable javascript.

        Returns
        -------
            Iterable of html's tag and its status.
        """
    tags = {'style': cssless, 'script': js}
    return getattr(tags, 'iteritems', tags.items)()
