docs: def from_manifest(app, filename, raw=False, **kwargs):
      '''
      Get the path to a static file for a given app entry of a given type.
  
      :param str app: The application key to which is tied this manifest
      :param str filename: the original filename (without hash)
      :param bool raw: if True, doesn't add prefix to the manifest
      :return: the resolved file path from manifest
      :rtype: str
      '''
      cfg = current_app.config
  
      if current_app.config.get('TESTING'):
          return  # Do not spend time here when testing
  
      path = _manifests[app][filename]
  
      if not raw and cfg.get('CDN_DOMAIN') and not cfg.get('CDN_DEBUG'):
          scheme = 'https' if cfg.get('CDN_HTTPS') else request.scheme
          prefix = '{}://'.format(scheme)
          if not path.startswith('/'):  # CDN_DOMAIN has no trailing slash
              path = '/' + path
          return ''.join((prefix, cfg['CDN_DOMAIN'], path))
      elif not raw and kwargs.get('external', False):
          if path.startswith('/'):  # request.host_url has a trailing slash
              path = path[1:]
          return ''.join((request.host_url, path))
      return path