comparison examples/blog/src/index.html.luan @ 1152:21d157b153fe

change http parameters interface
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 04 Feb 2018 19:25:12 -0700
parents c38f6619feb9
children 5dbb552075ff
comparison
equal deleted inserted replaced
1151:dbb3cb906482 1152:21d157b153fe
10 local Http = require "luan:http/Http.luan" 10 local Http = require "luan:http/Http.luan"
11 local Post = require "site:/lib/Post.luan" 11 local Post = require "site:/lib/Post.luan"
12 12
13 13
14 return function() 14 return function()
15 local query = Http.request.parameter.query 15 local query = Http.request.parameters.query
16 16
17 Io.stdout = Http.response.text_writer() 17 Io.stdout = Http.response.text_writer()
18 %> 18 %>
19 <html> 19 <html>
20 <head> 20 <head>