Mercurial Hosting > freedit
view src/index.html.luan @ 8:be36282b556a
add new_thread
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 29 Jun 2022 00:04:09 -0600 |
parents | fc3ee39d7764 |
children | 9674275019bb |
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" local forum_title = Forum.title or error() return function() Io.stdout = Http.response.text_writer() %> <!doctype html> <html> <head> <% head() %> <title><%=forum_title%></title> </head> <body> <% header() %> <div content> <p><a href="/new_thread.html">New Thread</a></p> </div> <% footer() %> </body> </html> <% end