diff website/src/docs.html.luan @ 386:db23f654f87d

make all of website use luan
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 23 Apr 2015 18:09:12 -0600
parents website/src/docs.html@8557581740db
children 23d075ce1e48
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/website/src/docs.html.luan	Thu Apr 23 18:09:12 2015 -0600
@@ -0,0 +1,29 @@
+local Io = require "luan:Io"
+local Html = require "luan:Html"
+local Http = require "luan:web/Http"
+
+
+function service()
+	Io.stdout = Http.response.text_writer()
+	Html.simply_html_page{
+		head = function() %>
+			<title>Luan Documentation</title>
+<%		end;
+		body = function() %>
+		<div container>
+			<div><small><a href="/">Luan</a></small></div>
+			<h1 margin-bottom="1em">Luan Documentation</h1>
+
+			<big>
+				<p>
+					<a href="tutorial.html">Tutorial</a><br>
+					<a href="pil.html">Programming in Lua (book)</a><br>
+					<a href="manual.html">Reference Manual</a><br>
+					<a href="diff.html">How Luan differs from Lua</a><br>
+				</p>
+			</big>
+
+		</div>
+<%		end;
+	}
+end