view src/lib/Shared.luan @ 3:43814e9f5802

add config
author Franklin Schmidt <fschmidt@gmail.com>
date Sat, 21 Oct 2023 22:52:41 -0600
parents 5ae5fbce0d75
children 8896ffd7b152
line wrap: on
line source

local Luan = require "luan:Luan.luan"
local error = Luan.error
local Time = require "luan:Time.luan"


local Shared = {}

local started = Time.now()

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

function Shared.header()
%>
		<div header>
			<h1><a href="/">Disearch</a></h1>
			<span>login</span>
		</div>
		<hr>
<%
end

function Shared.footer()
%>
		<hr>
		<div footer>
			something or other in the footer
		</div>
<%
end

return Shared