-
Notifications
You must be signed in to change notification settings - Fork 3
/
main.html
89 lines (64 loc) · 2.22 KB
/
main.html
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Neugram, Go scripting.</title>
<link rel="icon" type="image/png" href="/favicon.png">
<meta name=viewport content="width=device-width, initial-scale=1"/>
<style>
{{template "style.css"}}
</style>
</head>
<body>
<h1>Neugram, Go scripting</h1>
<section>
<div id="intro">
Neugram is a programming language designed to let you work quickly.
<br><br>
It integrates seamlessly with <a href="https://golang.org">Go</a>.
</div>
<div>
<div id="neu">{{template "neu.svg"}}</div>
<h3>Featuring</h3>
<ul>
<li><code>#!</code> script support</li>
<li>REPL</li>
<li>top-level statements</li>
<li>error elision</li>
<li>integrated shell</li>
</ul>
An example:
<p>
<div id="demo-code" class="code">#!/usr/bin/ng
<span class="comment">// Start a web server to serve files.</span>
<span class="keyword">import</span> <span class="string">"net/http"</span>
pwd <span class="keyword">:=</span> <span class="keyword">$$</span> echo $PWD <span class="keyword">$$</span>
h <span class="keyword">:=</span> http.FileServer(http.Dir(pwd))
http.ListenAndServe(<span class="string">":8080"</span>, h)
</div>
<h3>Download</h3>
<p>Weekly binary releases will start when Go 1.10 is released in January 2018. (With it come several necessary plugin fixes and support on macOS.)
<p>In the mean time, you can build neugram from HEAD with:
<blockquote><code>go install neugram.io/ng</code></blockquote>
<h3>Blog</h3>
<div class="entries">
{{range .}}
<div><div class="entrydate">{{.Date}}</div><a href="{{.URL}}">{{.Title}}</a></div>
{{end}}
</div>
<br><a href="/blog/">Blog Archive</a>
<h3>Documentation</h3>
<ul>
<li><a href="https://github.com/neugram/ng/blob/master/docs/shell.md">shell reference</a></li>
<li>Much more needed!</li>
</ul>
<h3>Community</h3>
<p>Neugram is released under a MIT-style license.
<p>For discussion, there is a <a href="https://groups.google.com/forum/#!forum/neugram">neugram mailing list</a>.
<p>All the source code to neugram lives in git and is hosted in a <a href="https://github.com/neugram/ng">github repository</a>.
<p>File bugs in the github <a href="https://github.com/neugram/ng/issues">issue tracker</a>.
<p>You are welcome here.
</section>
{{template "footer"}}
</body>
</html>