def __init__(self, name, url_prefix=None, host=None,
                 composition_view_class=None):
        """Create a new blueprint

        :param name: unique name of the blueprint
        :param url_prefix: URL to be prefixed before all route URLs
        """
        self.name = name
        self.url_prefix = url_prefix
        self.host = host
        self.routes = []
        self.exceptions = []
        self.listeners = defaultdict(list)
        self.middlewares = []
        self.statics = []
        self._composition_view_class = (
            composition_view_class or CompositionView)
def __init__ ( self , name , url_prefix = None , host = None , composition_view_class = None ) : self . name = name self . url_prefix = url_prefix self . host = host self . routes = [ ] self . exceptions = [ ] self . listeners = defaultdict ( list ) self . middlewares = [ ] self . statics = [ ] self . _composition_view_class = ( composition_view_class or CompositionView )
Create a new blueprint

        :param name: unique name of the blueprint
        :param url_prefix: URL to be prefixed before all route URLs