Skip to content

Instantly share code, notes, and snippets.

@cfbolz
Last active September 17, 2021 17:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cfbolz/4a346d104fee41affc860a7b928b7291 to your computer and use it in GitHub Desktop.
Save cfbolz/4a346d104fee41affc860a7b928b7291 to your computer and use it in GitHub Desktop.
Tornado templating microbenchmark
<head>
<title>{{ title }}</title>
</head>
<body>
<h1>{{ title }}</h1>
{% for par in text %}
<p class="test">
{% for word in par %}
<span data-word="{{ word }}" class="test">{{ word }}</span>
<span data-word="{{ word }}" class="test">{{ word }}</span>
<span data-word="{{ word }}" class="test">{{ word }}</span>
<span data-word="{{ word }}" class="test">{{ word }}</span>
<span data-word="{{ word }}" class="test">{{ word }}</span>
<span data-word="{{ word }}" class="test">{{ word }}</span>
<span data-word="{{ word }}" class="test">{{ word }}</span>
<span data-word="{{ word }}" class="test">{{ word }}</span>
<span data-word="{{ word }}" class="test">{{ word }}</span>
<span data-word="{{ word }}" class="test">{{ word }}</span>
<span data-word="{{ word }}" class="test">{{ word }}</span>
<span data-word="{{ word }}" class="test">{{ word }}</span>
<span data-word="{{ word }}" class="test">{{ word }}</span>
<span data-word="{{ word }}" class="test">{{ word }}</span>
<span data-word="{{ word }}" class="test">{{ word }}</span>
<span data-word="{{ word }}" class="test">{{ word }}</span>
<span data-word="{{ word }}" class="test">{{ word }}</span>
<span data-word="{{ word }}" class="test">{{ word }}</span>
<span data-word="{{ word }}" class="test">{{ word }}</span>
<span data-word="{{ word }}" class="test">{{ word }}</span>
<span data-word="{{ word }}" class="test">{{ word }}</span>
<span data-word="{{ word }}" class="test">{{ word }}</span>
<span data-word="{{ word }}" class="test">{{ word }}</span>
<span data-word="{{ word }}" class="test">{{ word }}</span>
<span data-word="{{ word }}" class="test">{{ word }}</span>
<span data-word="{{ word }}" class="test">{{ word }}</span>
<span data-word="{{ word }}" class="test">{{ word }}</span>
<span data-word="{{ word }}" class="test">{{ word }}</span>
<span data-word="{{ word }}" class="test">{{ word }}</span>
<span data-word="{{ word }}" class="test">{{ word }}</span>
<span data-word="{{ word }}" class="test">{{ word }}</span>
<span data-word="{{ word }}" class="test">{{ word }}</span>
<span data-word="{{ word }}" class="test">{{ word }}</span>
<span data-word="{{ word }}" class="test">{{ word }}</span>
<span data-word="{{ word }}" class="test">{{ word }}</span>
<span data-word="{{ word }}" class="test">{{ word }}</span>
{% end %}
</p>
{% end %}
</body>
</html>
import time
from tornado import template
from random import choice
from string import ascii_letters
text = [[''.join(choice(ascii_letters) for x in range(8)) for y in range(16)] for z in range(64)]
def main():
with open("index.html") as f:
content = f.read()
t = template.Template(content)
res = 0
t1 = time.time()
for i in range(200):
res += len(t.generate(text=text, title="Test"))
t2 = time.time()
print(t2 - t1)
if __name__ == "__main__":
main()
def _tt_execute(): # <string>:0
_tt_buffer = [] # <string>:0
_tt_append = _tt_buffer.append # <string>:0
_tt_append(b' <head>\n <title>') # <string>:2
_tt_tmp = title # <string>:2
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:2
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:2
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:2
_tt_append(_tt_tmp) # <string>:2
_tt_append(b'</title>\n </head>\n <body>\n <h1>') # <string>:5
_tt_tmp = title # <string>:5
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:5
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:5
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:5
_tt_append(_tt_tmp) # <string>:5
_tt_append(b'</h1>\n ') # <string>:6
for par in text: # <string>:6
_tt_append(b'\n <p class="test">\n ') # <string>:8
for word in par: # <string>:8
_tt_append(b'\n <span data-word="') # <string>:9
_tt_tmp = word # <string>:9
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:9
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:9
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:9
_tt_append(_tt_tmp) # <string>:9
_tt_append(b'" class="test">') # <string>:9
_tt_tmp = word # <string>:9
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:9
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:9
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:9
_tt_append(_tt_tmp) # <string>:9
_tt_append(b'</span>\n <span data-word="') # <string>:10
_tt_tmp = word # <string>:10
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:10
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:10
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:10
_tt_append(_tt_tmp) # <string>:10
_tt_append(b'" class="test">') # <string>:10
_tt_tmp = word # <string>:10
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:10
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:10
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:10
_tt_append(_tt_tmp) # <string>:10
_tt_append(b'</span>\n <span data-word="') # <string>:11
_tt_tmp = word # <string>:11
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:11
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:11
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:11
_tt_append(_tt_tmp) # <string>:11
_tt_append(b'" class="test">') # <string>:11
_tt_tmp = word # <string>:11
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:11
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:11
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:11
_tt_append(_tt_tmp) # <string>:11
_tt_append(b'</span>\n <span data-word="') # <string>:12
_tt_tmp = word # <string>:12
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:12
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:12
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:12
_tt_append(_tt_tmp) # <string>:12
_tt_append(b'" class="test">') # <string>:12
_tt_tmp = word # <string>:12
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:12
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:12
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:12
_tt_append(_tt_tmp) # <string>:12
_tt_append(b'</span>\n <span data-word="') # <string>:13
_tt_tmp = word # <string>:13
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:13
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:13
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:13
_tt_append(_tt_tmp) # <string>:13
_tt_append(b'" class="test">') # <string>:13
_tt_tmp = word # <string>:13
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:13
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:13
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:13
_tt_append(_tt_tmp) # <string>:13
_tt_append(b'</span>\n <span data-word="') # <string>:14
_tt_tmp = word # <string>:14
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:14
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:14
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:14
_tt_append(_tt_tmp) # <string>:14
_tt_append(b'" class="test">') # <string>:14
_tt_tmp = word # <string>:14
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:14
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:14
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:14
_tt_append(_tt_tmp) # <string>:14
_tt_append(b'</span>\n <span data-word="') # <string>:15
_tt_tmp = word # <string>:15
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:15
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:15
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:15
_tt_append(_tt_tmp) # <string>:15
_tt_append(b'" class="test">') # <string>:15
_tt_tmp = word # <string>:15
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:15
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:15
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:15
_tt_append(_tt_tmp) # <string>:15
_tt_append(b'</span>\n <span data-word="') # <string>:16
_tt_tmp = word # <string>:16
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:16
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:16
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:16
_tt_append(_tt_tmp) # <string>:16
_tt_append(b'" class="test">') # <string>:16
_tt_tmp = word # <string>:16
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:16
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:16
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:16
_tt_append(_tt_tmp) # <string>:16
_tt_append(b'</span>\n <span data-word="') # <string>:17
_tt_tmp = word # <string>:17
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:17
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:17
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:17
_tt_append(_tt_tmp) # <string>:17
_tt_append(b'" class="test">') # <string>:17
_tt_tmp = word # <string>:17
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:17
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:17
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:17
_tt_append(_tt_tmp) # <string>:17
_tt_append(b'</span>\n <span data-word="') # <string>:18
_tt_tmp = word # <string>:18
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:18
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:18
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:18
_tt_append(_tt_tmp) # <string>:18
_tt_append(b'" class="test">') # <string>:18
_tt_tmp = word # <string>:18
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:18
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:18
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:18
_tt_append(_tt_tmp) # <string>:18
_tt_append(b'</span>\n <span data-word="') # <string>:19
_tt_tmp = word # <string>:19
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:19
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:19
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:19
_tt_append(_tt_tmp) # <string>:19
_tt_append(b'" class="test">') # <string>:19
_tt_tmp = word # <string>:19
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:19
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:19
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:19
_tt_append(_tt_tmp) # <string>:19
_tt_append(b'</span>\n <span data-word="') # <string>:20
_tt_tmp = word # <string>:20
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:20
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:20
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:20
_tt_append(_tt_tmp) # <string>:20
_tt_append(b'" class="test">') # <string>:20
_tt_tmp = word # <string>:20
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:20
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:20
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:20
_tt_append(_tt_tmp) # <string>:20
_tt_append(b'</span>\n <span data-word="') # <string>:21
_tt_tmp = word # <string>:21
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:21
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:21
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:21
_tt_append(_tt_tmp) # <string>:21
_tt_append(b'" class="test">') # <string>:21
_tt_tmp = word # <string>:21
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:21
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:21
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:21
_tt_append(_tt_tmp) # <string>:21
_tt_append(b'</span>\n <span data-word="') # <string>:22
_tt_tmp = word # <string>:22
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:22
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:22
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:22
_tt_append(_tt_tmp) # <string>:22
_tt_append(b'" class="test">') # <string>:22
_tt_tmp = word # <string>:22
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:22
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:22
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:22
_tt_append(_tt_tmp) # <string>:22
_tt_append(b'</span>\n <span data-word="') # <string>:23
_tt_tmp = word # <string>:23
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:23
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:23
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:23
_tt_append(_tt_tmp) # <string>:23
_tt_append(b'" class="test">') # <string>:23
_tt_tmp = word # <string>:23
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:23
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:23
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:23
_tt_append(_tt_tmp) # <string>:23
_tt_append(b'</span>\n <span data-word="') # <string>:24
_tt_tmp = word # <string>:24
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:24
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:24
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:24
_tt_append(_tt_tmp) # <string>:24
_tt_append(b'" class="test">') # <string>:24
_tt_tmp = word # <string>:24
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:24
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:24
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:24
_tt_append(_tt_tmp) # <string>:24
_tt_append(b'</span>\n <span data-word="') # <string>:25
_tt_tmp = word # <string>:25
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:25
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:25
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:25
_tt_append(_tt_tmp) # <string>:25
_tt_append(b'" class="test">') # <string>:25
_tt_tmp = word # <string>:25
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:25
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:25
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:25
_tt_append(_tt_tmp) # <string>:25
_tt_append(b'</span>\n <span data-word="') # <string>:26
_tt_tmp = word # <string>:26
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:26
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:26
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:26
_tt_append(_tt_tmp) # <string>:26
_tt_append(b'" class="test">') # <string>:26
_tt_tmp = word # <string>:26
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:26
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:26
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:26
_tt_append(_tt_tmp) # <string>:26
_tt_append(b'</span>\n <span data-word="') # <string>:27
_tt_tmp = word # <string>:27
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:27
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:27
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:27
_tt_append(_tt_tmp) # <string>:27
_tt_append(b'" class="test">') # <string>:27
_tt_tmp = word # <string>:27
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:27
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:27
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:27
_tt_append(_tt_tmp) # <string>:27
_tt_append(b'</span>\n <span data-word="') # <string>:28
_tt_tmp = word # <string>:28
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:28
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:28
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:28
_tt_append(_tt_tmp) # <string>:28
_tt_append(b'" class="test">') # <string>:28
_tt_tmp = word # <string>:28
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:28
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:28
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:28
_tt_append(_tt_tmp) # <string>:28
_tt_append(b'</span>\n <span data-word="') # <string>:29
_tt_tmp = word # <string>:29
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:29
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:29
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:29
_tt_append(_tt_tmp) # <string>:29
_tt_append(b'" class="test">') # <string>:29
_tt_tmp = word # <string>:29
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:29
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:29
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:29
_tt_append(_tt_tmp) # <string>:29
_tt_append(b'</span>\n <span data-word="') # <string>:30
_tt_tmp = word # <string>:30
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:30
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:30
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:30
_tt_append(_tt_tmp) # <string>:30
_tt_append(b'" class="test">') # <string>:30
_tt_tmp = word # <string>:30
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:30
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:30
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:30
_tt_append(_tt_tmp) # <string>:30
_tt_append(b'</span>\n <span data-word="') # <string>:31
_tt_tmp = word # <string>:31
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:31
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:31
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:31
_tt_append(_tt_tmp) # <string>:31
_tt_append(b'" class="test">') # <string>:31
_tt_tmp = word # <string>:31
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:31
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:31
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:31
_tt_append(_tt_tmp) # <string>:31
_tt_append(b'</span>\n <span data-word="') # <string>:32
_tt_tmp = word # <string>:32
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:32
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:32
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:32
_tt_append(_tt_tmp) # <string>:32
_tt_append(b'" class="test">') # <string>:32
_tt_tmp = word # <string>:32
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:32
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:32
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:32
_tt_append(_tt_tmp) # <string>:32
_tt_append(b'</span>\n <span data-word="') # <string>:33
_tt_tmp = word # <string>:33
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:33
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:33
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:33
_tt_append(_tt_tmp) # <string>:33
_tt_append(b'" class="test">') # <string>:33
_tt_tmp = word # <string>:33
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:33
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:33
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:33
_tt_append(_tt_tmp) # <string>:33
_tt_append(b'</span>\n <span data-word="') # <string>:34
_tt_tmp = word # <string>:34
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:34
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:34
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:34
_tt_append(_tt_tmp) # <string>:34
_tt_append(b'" class="test">') # <string>:34
_tt_tmp = word # <string>:34
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:34
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:34
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:34
_tt_append(_tt_tmp) # <string>:34
_tt_append(b'</span>\n <span data-word="') # <string>:35
_tt_tmp = word # <string>:35
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:35
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:35
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:35
_tt_append(_tt_tmp) # <string>:35
_tt_append(b'" class="test">') # <string>:35
_tt_tmp = word # <string>:35
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:35
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:35
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:35
_tt_append(_tt_tmp) # <string>:35
_tt_append(b'</span>\n <span data-word="') # <string>:36
_tt_tmp = word # <string>:36
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:36
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:36
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:36
_tt_append(_tt_tmp) # <string>:36
_tt_append(b'" class="test">') # <string>:36
_tt_tmp = word # <string>:36
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:36
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:36
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:36
_tt_append(_tt_tmp) # <string>:36
_tt_append(b'</span>\n <span data-word="') # <string>:37
_tt_tmp = word # <string>:37
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:37
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:37
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:37
_tt_append(_tt_tmp) # <string>:37
_tt_append(b'" class="test">') # <string>:37
_tt_tmp = word # <string>:37
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:37
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:37
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:37
_tt_append(_tt_tmp) # <string>:37
_tt_append(b'</span>\n <span data-word="') # <string>:38
_tt_tmp = word # <string>:38
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:38
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:38
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:38
_tt_append(_tt_tmp) # <string>:38
_tt_append(b'" class="test">') # <string>:38
_tt_tmp = word # <string>:38
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:38
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:38
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:38
_tt_append(_tt_tmp) # <string>:38
_tt_append(b'</span>\n <span data-word="') # <string>:39
_tt_tmp = word # <string>:39
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:39
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:39
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:39
_tt_append(_tt_tmp) # <string>:39
_tt_append(b'" class="test">') # <string>:39
_tt_tmp = word # <string>:39
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:39
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:39
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:39
_tt_append(_tt_tmp) # <string>:39
_tt_append(b'</span>\n <span data-word="') # <string>:40
_tt_tmp = word # <string>:40
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:40
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:40
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:40
_tt_append(_tt_tmp) # <string>:40
_tt_append(b'" class="test">') # <string>:40
_tt_tmp = word # <string>:40
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:40
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:40
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:40
_tt_append(_tt_tmp) # <string>:40
_tt_append(b'</span>\n <span data-word="') # <string>:41
_tt_tmp = word # <string>:41
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:41
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:41
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:41
_tt_append(_tt_tmp) # <string>:41
_tt_append(b'" class="test">') # <string>:41
_tt_tmp = word # <string>:41
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:41
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:41
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:41
_tt_append(_tt_tmp) # <string>:41
_tt_append(b'</span>\n <span data-word="') # <string>:42
_tt_tmp = word # <string>:42
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:42
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:42
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:42
_tt_append(_tt_tmp) # <string>:42
_tt_append(b'" class="test">') # <string>:42
_tt_tmp = word # <string>:42
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:42
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:42
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:42
_tt_append(_tt_tmp) # <string>:42
_tt_append(b'</span>\n <span data-word="') # <string>:43
_tt_tmp = word # <string>:43
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:43
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:43
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:43
_tt_append(_tt_tmp) # <string>:43
_tt_append(b'" class="test">') # <string>:43
_tt_tmp = word # <string>:43
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:43
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:43
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:43
_tt_append(_tt_tmp) # <string>:43
_tt_append(b'</span>\n <span data-word="') # <string>:44
_tt_tmp = word # <string>:44
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:44
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:44
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:44
_tt_append(_tt_tmp) # <string>:44
_tt_append(b'" class="test">') # <string>:44
_tt_tmp = word # <string>:44
if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp) # <string>:44
else: _tt_tmp = _tt_utf8(str(_tt_tmp)) # <string>:44
_tt_tmp = _tt_utf8(xhtml_escape(_tt_tmp)) # <string>:44
_tt_append(_tt_tmp) # <string>:44
_tt_append(b'</span>\n ') # <string>:45
pass # <string>:8
_tt_append(b'\n </p>\n ') # <string>:47
pass # <string>:6
_tt_append(b'\n </body>\n</html>') # <string>:49
return _tt_utf8('').join(_tt_buffer) # <string>:0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment