Open M1ha-Shvn opened 2 years ago
Found out, that token.type is lexer.TOKEN_BLOCK_BEGIN
doesn't work any more. Inside jinja parser it is compared as token.type == "block_trans"
. token.type == lexer.TOKEN_BLOCK_BEGIN
also worked for me.
Hi Miha, thanks for reporting this! Feel free to open a merge request to fix this.
Hi. When I updated jinja2 verion 3, templates using blocktrans started failing:
raises an error