jinja2.lexer.compile_rules

jinja2.lexer.compile_rules(environment)[source]

Compiles all the rules from the environment into a list of rules.