Debian Codegraph @

tests/inputs/Mako.mako

raw
1 ## This is the test file for mako extenstion
2 ## As Mako can be used as a template to render almost any other
3 ## language we only count mako comments as comments.
4
5 <ol>
6 % for x in range(10):
7 <!-- This is a HTML comment but will be counted -->
8 <li>${strong(x)}</li>
9 % endfor
10 </ol>
11
12 <%def name="strong(x)">
13 <strong>${x}</strong>
14 </%def>
15
16 ## Result:
17 ## Lines: 20
18 ## Code: 9
19 ## Comment: 8
20 ## Blank: 3