Mercurial Hosting > luan
comparison website/src/docs.html.luan @ 387:23d075ce1e48
add website/src/Shared.luan
| author | Franklin Schmidt <fschmidt@gmail.com> |
|---|---|
| date | Thu, 23 Apr 2015 18:16:15 -0600 |
| parents | db23f654f87d |
| children | 2f5cc9c2cbf0 |
comparison
equal
deleted
inserted
replaced
| 386:db23f654f87d | 387:23d075ce1e48 |
|---|---|
| 1 local Io = require "luan:Io" | 1 local Io = require "luan:Io" |
| 2 local Html = require "luan:Html" | 2 local Html = require "luan:Html" |
| 3 local Http = require "luan:web/Http" | 3 local Http = require "luan:web/Http" |
| 4 local Shared = require "site:/Shared" | |
| 4 | 5 |
| 5 | 6 |
| 6 function service() | 7 function service() |
| 7 Io.stdout = Http.response.text_writer() | 8 Io.stdout = Http.response.text_writer() |
| 8 Html.simply_html_page{ | 9 Html.simply_html_page{ |
| 9 head = function() %> | 10 head = function() %> |
| 10 <title>Luan Documentation</title> | 11 <title>Luan Documentation</title> |
| 11 <% end; | 12 <% end; |
| 12 body = function() %> | 13 body = function() %> |
| 13 <div container> | 14 <div container> |
| 14 <div><small><a href="/">Luan</a></small></div> | 15 <% Shared.header() %> |
| 15 <h1 margin-bottom="1em">Luan Documentation</h1> | 16 <h1 margin-bottom="1em">Luan Documentation</h1> |
| 16 | 17 |
| 17 <big> | 18 <big> |
| 18 <p> | 19 <p> |
| 19 <a href="tutorial.html">Tutorial</a><br> | 20 <a href="tutorial.html">Tutorial</a><br> |
