def __init__(self, pattern, callback):
self._re = []<EOL>self._wildcards = []<EOL>for token in WildcardRoute.tokens(pattern):<EOL><INDENT>if token and token.startswith('<STR_LIT:<>') and token.endswith('<STR_LIT:>>'):<EOL><INDENT>w = Wildcard(token)<EOL>self._wildcards.append(w)<EOL>self._re.append(w.regex())<EOL><DEDENT>else:<EOL><INDENT>self._re.append(re.escape(token))<EOL><DEDENT><DEDENT>self._re = re.compile('<STR_LIT>' + '<STR_LIT>'.join(self._re) + '<STR_LIT:$>')<EOL>self._callback = callback<EOL>
Initialize wildcard route.

        Arguments:
          pattern (str): Pattern associated with the route.
          callback (callable): Route handler.