-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhome.html.hbs
More file actions
49 lines (42 loc) · 1.72 KB
/
home.html.hbs
File metadata and controls
49 lines (42 loc) · 1.72 KB
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
{{#> _page.html.hbs}}
{{get "/_header"}}
<article>
<p>
<strong>Operator is a web server.</strong> You provide
<a href="https://github.com/mkantor/operator-website/tree/master/content">a directory</a>
and Operator serves it over HTTP.
</p>
<p>
It serves <a href="/features#serve-static-files">static files</a> the way you might expect, but can also generate
dynamic content at request time using <a href="/features#render-handlebars-templates">handlebars templates</a>
and <a href="/features#render-handlebars-templates">executables</a>. For example, during your request
<a href="https://github.com/mkantor/operator-website/blob/master/content/examples/now.html.sh">a script</a> ran
on the server to timestamp this page: <code>{{get "/examples/now"}}</code>.
</p>
</article>
<article>
<h2>Installation</h2>
<p>
Operator is a single self-contained binary, with
<a href="https://github.com/mkantor/operator/releases">releases hosted on GitHub</a>. You can get the latest
release like so:
</p>
<details open name="install-instructions">
<summary>Linux <small>x86-64</small></summary>
{{~>_install-commands.html.hbs
os="linux"
version=(get "/_current-operator-release/version")
hash=(get "/_current-operator-release/hash-linux-x86-64")
~}}
</details>
<details name="install-instructions">
<summary>macOS <small>x86-64</small></summary>
{{~>_install-commands.html.hbs
os="macos"
version=(get "/_current-operator-release/version")
hash=(get "/_current-operator-release/hash-macos-x86-64")
~}}
</details>
</article>
{{get "/_footer"}}
{{/_page.html.hbs}}