forked from beyondgrep/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchart.ttml
48 lines (44 loc) · 1.49 KB
/
chart.ttml
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
[% WRAPPER wrapper/page.ttml title="Feature comparison of ack, ag, git-grep, grep and ripgrep" %]
<div class="content">
<h1>Feature comparison of ack, ag, git-grep, GNU grep and ripgrep</h1>
<p>
Note: <a href="/ack3">ack 3 is currently in beta</a>.
</p>
<p>
If you have updates to the chart, please
<a href="https://github.com/beyondgrep/website/issues/">submit as a GitHub issue</a>.
</p>
<table>
[% FOR section IN sections %]
<tr>
<th>
[% section.section | html_entity %]
</th>
<th width="14%">ack</th>
<th width="14%">ag</th>
<th width="14%">git-grep</th>
<th width="14%">GNU grep</th>
<th width="14%">rg</th>
</tr>
[% FOR ability IN section.abilities %]
<tr>
<td>[% ability.what | html_entity %]</td>
[% hows = ability.how %]
[% IF hows.size == 5 %]
[% FOR how IN hows %]
<td>
[% IF how != '' %]
<span class="option">[% how | html_entity %]</span>
[% END %]
</td>
[% END %]
[% ELSE %]
<td colspan="5">
<span class="option">[% hows.0 | html_entity %]</span>
</td>
[% END %]
</tr>
[% END %]
[% END %]
</table>
[% END %]