Mercurial Hosting > luan
comparison website/src/diff.html.luan @ 391:2f5cc9c2cbf0
replace Html.simply_html_page with simply_html_head and simply_html_body_bottom
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Fri, 24 Apr 2015 14:05:52 -0600 |
parents | bfbbce690bba |
children | eddf7c73373b |
comparison
equal
deleted
inserted
replaced
390:bfbbce690bba | 391:2f5cc9c2cbf0 |
---|---|
4 local Shared = require "site:/Shared" | 4 local Shared = require "site:/Shared" |
5 | 5 |
6 | 6 |
7 function service() | 7 function service() |
8 Io.stdout = Http.response.text_writer() | 8 Io.stdout = Http.response.text_writer() |
9 Html.simply_html_page{ | 9 %> |
10 head = function() %> | 10 <html> |
11 <title>How Luan differs from Lua</title> | 11 <head> |
12 <% end; | 12 <% Html.simply_html_head() %> |
13 body = function() %> | 13 <title>How Luan differs from Lua</title> |
14 </head> | |
15 <body> | |
14 | 16 |
15 <div container> | 17 <div container> |
16 <% Shared.header() %> | 18 <% Shared.header() %> |
17 <h1>How Luan differs from Lua</h1> | 19 <h1>How Luan differs from Lua</h1> |
18 | 20 |
216 | 218 |
217 <p>The strings in template expressions may be multiple lines.</p> | 219 <p>The strings in template expressions may be multiple lines.</p> |
218 | 220 |
219 </div> | 221 </div> |
220 | 222 |
221 <% end; | 223 <% Html.simply_html_body_bottom() %> |
222 } | 224 </body> |
225 </html> | |
226 <% | |
223 end | 227 end |