view website/src/examples/hi.luan @ 732:d7371dc8c2e7

add Http.request.port
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 12 Jun 2016 23:05:31 -0600
parents ca169567ce07
children 2113294ccc6d
line wrap: on
line source

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


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