jinja2.lexer.Lexer.wrap

Lexer.wrap(stream, name=None, filename=None)[source]

This is called with the stream as returned by tokenize and wraps every token in a Token and converts the value.