summaryrefslogtreecommitdiff
path: root/template.html.tmpl
blob: d99372503844bf083cc32b5f65b4357021d3d2f8 (plain)
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
49
50
51
52
53
<!doctype html>
<html>
<head>
<meta charset=utf-8>
<title>Rust features</title>
<link rel="stylesheet" href="style.css" />
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>

<div class=header>
<div class=left><h1>Rust features</h1></div>
<input id=search autocomplete=off tabindex=4>
<noscript>
With JavaScript you get a search box here.
<style>
#search { display: none; }
</style>
</noscript>
<script src=script.js></script>
<div class=right></div>
</div>
<div style="clear: both"></div>

page generated by <a tabindex=1 target=_blank href="https://push-f.com/">push-f</a>
         from the <a tabindex=2 target=_blank href="https://github.com/jplatte/caniuse.rs">caniuse.rs dataset</a>

{{range .Versions}}
    <div class=release>
        <h2 id="{{.Name}}">{{.Name}}</h2>
        {{with .BlogPostURL}}
           <a href="{{.}}" class=release-notes>release notes</a>
        {{end}}
    </div>
    {{if .NonLibFeatures}}
        <ul id="{{.Name}}-non-lib-list">
            {{- range .NonLibFeatures}}
                <li>{{template "feature" .}}</li>
            {{- end}}
        </ul>
    {{end}}
    {{if .LibFeatures}}
        <h3 id="{{.Name}}-lib-heading">library</h3>
        <ul id="{{.Name}}-lib-list">
            {{- range .LibFeatures}}
                <li>{{template "feature" .}}</li>
            {{- end}}
        </ul>
    {{end}}
{{end}}
{{define "feature" -}}
    <a {{with .URL}}href="{{.}}"{{end}} {{with .Flag}}title="{{.}}"{{end}}>{{.Title | formatBackticks}}</a>
{{- end}}