comparison website/src/lib/Shared.luan @ 1812:f44dcb3fedf7

docs - add code block
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 10 Jun 2024 14:41:48 -0600
parents fdc59d390615
children 50e570b598b2
comparison
equal deleted inserted replaced
1811:55d89a183c82 1812:f44dcb3fedf7
38 %> 38 %>
39 <ul> 39 <ul>
40 <% 40 <%
41 for id, info in pairs(content) do 41 for id, info in pairs(content) do
42 %> 42 %>
43 <li><a id="c_<%=id%>" href="#<%=id%>"><%=info.title%></a> 43 <li c_<%=id%> ><a id="c_<%=id%>" href="#<%=id%>"><%=info.title%></a>
44 <% 44 <%
45 local subs = info.subs 45 local subs = info.subs
46 if subs ~= nil then 46 if subs ~= nil then
47 show_toc(subs) 47 show_toc(subs)
48 end 48 end