/usr/lib/python2.7/dist-packages/chameleon/tests/inputs/087-code-blocks.pt is in python-chameleon 2.16-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | <?python
foo = [1, 2, 3] ?>
<ul>
<li tal:repeat="f foo" tal:content="f" />
</ul>
<?python
foo = [1, 2, 3]
boo = [4, 5, 6]
?>
<ul>
<li tal:repeat="(f, g) zip(foo, boo)" tal:content="f + g" />
</ul>
<div>
<?python numbers = map(str, range(1, 10)) ?>
Please input a number from the range ${", ".join(numbers)}.
</div>
<div>
<?python
def function(i):
return i + 1
?>
41 + 1 = ${function(41)}.
</div>
|