view src/lib/Shared.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 Forum = require "site:/lib/Forum.luan"


local Shared = {}

function Shared.head()
%>
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<style>
			@import "/site.css";
		</style>
<%
end

function Shared.header()
%>
		<div header>
			<a href="/"><%=Forum.title%></a>
		</div>
<%
end

function Shared.footer()
%>
		<div footer>
			<a href="/config.html">Configuration</a>
		</div>
<%
end

return Shared