code: def register_manifest(app, filename='manifest.json'):
      '''Register an assets json manifest'''
      if current_app.config.get('TESTING'):
          return  # Do not spend time here when testing
      if not has_manifest(app, filename):
          msg = '{filename} not found for {app}'.format(**locals())
          raise ValueError(msg)
      manifest = _manifests.get(app, {})
      manifest.update(load_manifest(app, filename))
      _manifests[app] = manifesf register_manifest(app, filename='manifest.json'):
      '''Register an assets json manifest'''
      if current_app.config.get('TESTING'):
          return  # Do not spend time here when testing
      if not has_manifest(app, filename):
          msg = '{filename} not found for {app}'.format(**locals())
          raise ValueError(msg)
      manifest = _manifests.get(app, {})
      manifest.update(load_manifest(app, filename))
      _manifests[app] = manifest
docs: Register an assets json manifest