Mercurial Hosting > luan
comparison src/luan/tools/web_run.luan @ 139:3b384dc5ca91
replace WebShell.java with web_shell.luan
git-svn-id: https://luan-java.googlecode.com/svn/trunk@140 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Fri, 13 Jun 2014 12:26:44 +0000 |
parents | 06159094b802 |
children | 925ba2d59b9d |
comparison
equal
deleted
inserted
replaced
138:06159094b802 | 139:3b384dc5ca91 |
---|---|
14 print(i,line) | 14 print(i,line) |
15 i = i + 1 | 15 i = i + 1 |
16 end | 16 end |
17 end | 17 end |
18 | 18 |
19 return function() | 19 function page() |
20 Http.response.set_content_type "text/plain" | 20 Http.response.set_content_type "text/plain" |
21 Io.stdout = Http.response.text_writer() | 21 Io.stdout = Http.response.text_writer() |
22 local code = Http.request.get_parameter "code" | 22 local code = Http.request.get_parameter "code" |
23 try | 23 try |
24 local fn = load(code,"<web_run>") | 24 local fn = load(code,"<web_run>") |