class_docstr: A loader that is passed a dict of loaders where each loader is bound
  to a prefix.  The prefix is delimited from the template by a slash per
  default, which can be changed by setting the `delimiter` argument to
  something else::
  
      loader = PrefixLoader({
          'app1':     PackageLoader('mypackage.app1'),
          'app2':     PackageLoader('mypackage.app2')
      })
  
  By loading ``'app1/index.html'`` the file from the app1 package is loaded,
  by loading ``'app2/index.html'`` the file from the second.
class_docstr_tok: ["A","loader","that","is","passed","a","dict","of","loaders","where","each","loader","is","bound","to","a","prefix",".","The","prefix","is","delimited","from","the","template","by","a","slash","per","default",",","which","can","be","changed","by","setting","the","`","delimiter","`","argument","to","something","else",":",":","loader","=","PrefixLoader","(","{","'app1","'",":","PackageLoader","(","'mypackage.app1","'",")",",","'app2","'",":","PackageLoader","(","'mypackage.app2","'",")","}",")","By","loading","``","'app1\/index.html","'","``","the","file","from","the","app1","package","is","loaded",",","by","loading","``","'app2\/index.html","'","``","the","file","from","the","second","."]
code: def __init__(self, mapping, delimiter="/"):
      self.mapping = mapping
      self.delimiter = delimiter
  
imports: import os
  import sys
  import weakref
  from hashlib import sha1
  from os import path
  from types import ModuleType
  from ._compat import abc
  from ._compat import fspath
  from ._compat import iteritems
  from ._compat import string_types
  from .exceptions import TemplateNotFound
  from .utils import internalcode
  from .utils import open_if_exists
label_desc: Use image node_id 1 to create a new PrefixLoader object from inherited base classes: BaseLoader with example: obj = PrefixLoader(mapping, delimiter)