code: def verbatim(parser, token):
      
      text = []
      while 1:
          token = parser.tokens.pop(0)
          if token.contents == 'endverbatim':
              break
          if token.token_type == TOKEN_VAR:
              text.append('{{ ')
          elif token.token_type == TOKEN_BLOCK:
              text.append('{%')
          text.append(token.contents)
          if token.token_type == TOKEN_VAR:
              text.append(' }}')
          elif token.token_type == TOKEN_BLOCK:
              if not text[-1].startswith('='):
                  text[-1:-1] = [' ']
              text.append(' %}')
      return VerbatimNode(''.join(text))
docs: Tag to render x-tmpl templates with Django template code.