Find all resources which subclass ResourceBase.

    Keyword arguments:
    minify -- select minified resources if available.

    Returns:
    Dictionary of available resources. Keys are resource names (part of the config variable names), values are dicts
    with css and js keys, and tuples of resources as values.

def get_resources(minify=False):
    """Find all resources which subclass ResourceBase.

    Keyword arguments:
    minify -- select minified resources if available.

    Returns:
    Dictionary of available resources. Keys are resource names (part of the config variable names), values are dicts
    with css and js keys, and tuples of resources as values.
    """
    all_resources = dict()
    subclasses = resource_base.ResourceBase.__subclasses__() + resource_definitions.ResourceAngular.__subclasses__()
    for resource in subclasses:
        obj = resource(minify)
        all_resources[resource.RESOURCE_NAME] = dict(css=tuple(obj.resources_css), js=tuple(obj.resources_js))
    return all_resources