comparison website/src/tutorial.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 23d075ce1e48
children 322c03d85ada
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>Luan Tutorial</title> 11 <head>
12 <% end; 12 <% Html.simply_html_head() %>
13 body = function() %> 13 <title>Luan Tutorial</title>
14 </head>
15 <body>
14 16
15 <div container> 17 <div container>
16 <% Shared.header() %> 18 <% Shared.header() %>
17 <h1 margin-bottom="1em">Luan Tutorial</h1> 19 <h1 margin-bottom="1em">Luan Tutorial</h1>
18 20
100 102
101 <p>Hopefully this short tutorial gave you an idea of how to use Luan to make a website.</p> 103 <p>Hopefully this short tutorial gave you an idea of how to use Luan to make a website.</p>
102 104
103 </div> 105 </div>
104 106
105 <% end; 107 <% Html.simply_html_body_bottom() %>
106 } 108 </body>
109 </html>
110 <%
107 end 111 end