diff website/src/index.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/index.html@7999601586b1
children 2f5cc9c2cbf0
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/website/src/index.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</title>
+<%		end;
+		body = function() %>
+		<div container>
+			<h1>The Luan Programming Language</h1>
+			<big>
+				<p margin-bottom="2em">under construction...</p>
+				<p>Luan is a <a href="http://www.lua.org">Lua</a>-like language implemented in <a href="https://www.oracle.com/java/">Java</a>.</p>
+				<p>
+					<a href="docs.html">Documentation</a><br>
+					<a href="https://www.dropbox.com/sh/i7imf67wzj7z3h2/AABrpM0L1apqHysb_ot5t2dla?dl=0">Download</a><br>
+					<a href="https://bitbucket.org/frschmidt/luan">Source</a><br>
+					<a href="http://luan.7479.n7.nabble.com/">Forum</a><br>
+				</p>
+			</big>
+			<p margin-top="2em"><small>This website was made with <a href="http://www.simplyhtml.org/">SimplyHTML</a>.</small></p>
+		</div>
+<%		end;
+	}
+end