def load(open_file):
    """Load file from static directory.

    Example:

    .. code-block:: python

        def test_something(load):
            data = load('filename')

    :return: Loader (function).
    """

    def _load(filename, *args, **kwargs):
        with open_file(filename, *args, **kwargs) as file:
            return file.read()

    return _load