view website/src/examples/hi.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 ca169567ce07
line wrap: on
line source

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


return function()
	Io.stdout = Http.response.text_writer()
	%>
	<html>
		<body>
			Hello World
		</body>
	</html>
	<%
end