summaryrefslogtreecommitdiff
path: root/template.html.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'template.html.tmpl')
-rw-r--r--template.html.tmpl53
1 files changed, 53 insertions, 0 deletions
diff --git a/template.html.tmpl b/template.html.tmpl
new file mode 100644
index 0000000..d993725
--- /dev/null
+++ b/template.html.tmpl
@@ -0,0 +1,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}}