comparison website/src/docs.html.luan @ 1652:d5779a264a4a

docs work
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 31 Mar 2022 19:04:59 -0600
parents 5b8f056527a3
children 3f28ea044a32
comparison
equal deleted inserted replaced
1651:5b8f056527a3 1652:d5779a264a4a
2 local error = Luan.error 2 local error = Luan.error
3 local Io = require "luan:Io.luan" 3 local Io = require "luan:Io.luan"
4 local Http = require "luan:http/Http.luan" 4 local Http = require "luan:http/Http.luan"
5 local Shared = require "site:/lib/Shared.luan" 5 local Shared = require "site:/lib/Shared.luan"
6 local head = Shared.head or error() 6 local head = Shared.head or error()
7 local header = Shared.header or error() 7 local docs_header = Shared.docs_header or error()
8 8
9 9
10 return function() 10 return function()
11 Io.stdout = Http.response.text_writer() 11 Io.stdout = Http.response.text_writer()
12 %> 12 %>
15 <head> 15 <head>
16 <% head() %> 16 <% head() %>
17 <title>Luan Documentation</title> 17 <title>Luan Documentation</title>
18 </head> 18 </head>
19 <body> 19 <body>
20 <% header{[[<a href="docs.html">Documentation</a>]]} %> 20 <% docs_header() %>
21 <div content> 21 <div content>
22 <h1>Luan Documentation</h1> 22 <h1>Luan Documentation</h1>
23 23
24 <div link><a href="tutorial.html">Tutorial</a></div> 24 <div link><a href="tutorial.html">Tutorial</a></div>
25 <div link><a href="pil.html">Programming in Lua (book)</a></div> 25 <div link><a href="pil.html">Programming in Lua (book)</a></div>