comparison website/src/tutorial.html.luan @ 503:92c3d22745b8

make _ENV optional
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 20 May 2015 23:24:46 -0600
parents 598123096772
children 7bc63886d4f2
comparison
equal deleted inserted replaced
502:d3183a330ff5 503:92c3d22745b8
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:http/Http" 3 local Http = require "luan:http/Http"
4 local Shared = require "site:/Shared" 4 local Shared = require "site:/Shared"
5 5
6 local M = {}
6 7
7 function respond() 8 function M.respond()
8 Io.stdout = Http.response.text_writer() 9 Io.stdout = Http.response.text_writer()
9 %> 10 %>
10 <html> 11 <html>
11 <head> 12 <head>
12 <% Html.simply_html_head() %> 13 <% Html.simply_html_head() %>
107 <% Html.simply_html_body_bottom() %> 108 <% Html.simply_html_body_bottom() %>
108 </body> 109 </body>
109 </html> 110 </html>
110 <% 111 <%
111 end 112 end
113
114 return M