view src/lib/Shared.luan @ 1:d19b150ecb83

add Shared
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 19 Oct 2023 23:14:21 -0600
parents
children 5ae5fbce0d75
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>
			something or other in the header
		</div>
		<hr>
<%
end

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

return Shared