view website/src/index.html.luan @ 505:7bc63886d4f2

web page modules now return a function
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 21 May 2015 01:45:49 -0600
parents 92c3d22745b8
children 7cc9d4a53d3b
line wrap: on
line source

local Io = require "luan:Io"
local Html = require "luan:Html"
local Http = require "luan:http/Http"


return function()
	Io.stdout = Http.response.text_writer()
%>
<html>
	<head>
		<% Html.simply_html_head() %>
		<title>Luan</title>
	</head>
	<body>
		<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>
		<% Html.simply_html_body_bottom() %>
	</body>
</html>
<%
end