comparison website/src/lib/Shared.luan @ 1652:d5779a264a4a

docs work
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 31 Mar 2022 19:04:59 -0600
parents 5b8f056527a3
children 418b610e887b
comparison
equal deleted inserted replaced
1651:5b8f056527a3 1652:d5779a264a4a
12 @import "/site.css"; 12 @import "/site.css";
13 </style> 13 </style>
14 <% 14 <%
15 end 15 end
16 16
17 function Shared.header(crumbs) 17 local function header(crumbs)
18 %> 18 %>
19 <div header> 19 <div header>
20 <a href="/">Luan</a> 20 <a href="/">Luan</a>
21 <% for _, crumb in ipairs(crumbs or {}) do %> 21 <% for _, crumb in ipairs(crumbs or {}) do %>
22 / <%=crumb%> 22 / <%=crumb%>
23 <% end %> 23 <% end %>
24 </div> 24 </div>
25 <% 25 <%
26 end 26 end
27 Shared.header = header
28
29 function Shared.docs_header()
30 header{[[<a href="/docs.html">Documentation</a>]]}
31 end
27 32
28 return Shared 33 return Shared