@register.tag<EOL>def verbatim(parser, token):
text = []<EOL>while <NUM_LIT:1>:<EOL><INDENT>token = parser.tokens.pop(<NUM_LIT:0>)<EOL>if token.contents == '<STR_LIT>':<EOL><INDENT>break<EOL><DEDENT>if token.token_type == TOKEN_VAR:<EOL><INDENT>text.append('<STR_LIT>')<EOL><DEDENT>elif token.token_type == TOKEN_BLOCK:<EOL><INDENT>text.append('<STR_LIT>')<EOL><DEDENT>text.append(token.contents)<EOL>if token.token_type == TOKEN_VAR:<EOL><INDENT>text.append('<STR_LIT>')<EOL><DEDENT>elif token.token_type == TOKEN_BLOCK:<EOL><INDENT>if not text[-<NUM_LIT:1>].startswith('<STR_LIT:=>'):<EOL><INDENT>text[-<NUM_LIT:1>:-<NUM_LIT:1>] = ['<STR_LIT:U+0020>']<EOL><DEDENT>text.append('<STR_LIT>')<EOL><DEDENT><DEDENT>return VerbatimNode('<STR_LIT>'.join(text))<EOL>
Tag to render x-tmpl templates with Django template code.