Mercurial Hosting > lang
comparison src/lib/Shared.luan @ 1:1c87f785eb42
start chat
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 08 Jul 2025 14:18:25 -0600 |
parents | 9845dcb9f5fc |
children | 78708fa556a0 |
comparison
equal
deleted
inserted
replaced
0:9845dcb9f5fc | 1:1c87f785eb42 |
---|---|
1 local Luan = require "luan:Luan.luan" | 1 local Luan = require "luan:Luan.luan" |
2 local error = Luan.error | 2 local error = Luan.error |
3 local Time = require "luan:Time.luan" | |
3 | 4 |
4 | 5 |
5 local Shared = {} | 6 local Shared = {} |
7 | |
8 local started = Time.now() | |
6 | 9 |
7 function Shared.head() | 10 function Shared.head() |
8 %> | 11 %> |
9 <meta name="viewport" content="width=device-width, initial-scale=1"> | 12 <meta name="viewport" content="width=device-width, initial-scale=1"> |
10 <style> | 13 <style> |
11 @import "/site.css"; | 14 @import "/site.css?s=<%=started%>"; |
12 </style> | 15 </style> |
16 <script src="/site.js?s=<%=started%>"></script> | |
13 <% | 17 <% |
14 end | 18 end |
15 | 19 |
16 function Shared.header() | 20 function Shared.header() |
17 %> | 21 %> |