Mercurial Hosting > luan
comparison website/src/tutorial.html.luan @ 1735:4b56eff90040
add hosting.html
| author | Franklin Schmidt <fschmidt@gmail.com> | 
|---|---|
| date | Sun, 02 Oct 2022 17:32:00 -0600 | 
| parents | 500c706ed4ea | 
| children | f44dcb3fedf7 | 
   comparison
  equal
  deleted
  inserted
  replaced
| 1734:02d2a6c3bc6f | 1735:4b56eff90040 | 
|---|---|
| 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 docs_header = Shared.docs_header or error() | 7 local 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 Tutorial</title> | 17 <title>Luan Tutorial</title> | 
| 18 </head> | 18 </head> | 
| 19 <body> | 19 <body> | 
| 20 <% docs_header() %> | 20 <% header() %> | 
| 21 <div content> | 21 <div content> | 
| 22 | 22 | 
| 23 <h1>Luan Tutorial</h1> | 23 <h1>Luan Tutorial</h1> | 
| 24 | 24 | 
| 25 | 25 | 
