view src/index.html.luan @ 0:6a1e2749571d

start
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 15 Jun 2022 20:18:36 -0600
parents
children fc3ee39d7764
line wrap: on
line source

local Luan = require "luan:Luan.luan"
local error = Luan.error
local Io = require "luan:Io.luan"
local Http = require "luan:http/Http.luan"
local Shared = require "site:/lib/Shared.luan"
local head = Shared.head or error()
local header = Shared.header or error()
local footer = Shared.footer or error()
local Forum = require "site:/lib/Forum.luan"


return function()
	Io.stdout = Http.response.text_writer()
%>
<!doctype html>
<html>
	<head>
<%		head() %>
		<title><%=Forum.title%></title>
	</head>
	<body>
<%		header() %>
		<div content>
			qqq
		</div>
<%		footer() %>
	</body>
</html>
<%
end