Mercurial Hosting > freedit
diff 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 diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/index.html.luan Wed Jun 15 20:18:36 2022 -0600 @@ -0,0 +1,30 @@ +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