Mercurial Hosting > luan
diff web/src/luan/modules/web/run.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 | 612a283b3d14 |
children |
line wrap: on
line diff
--- a/web/src/luan/modules/web/run.luan Fri Apr 24 12:31:13 2015 -0600 +++ b/web/src/luan/modules/web/run.luan Fri Apr 24 14:05:52 2015 -0600 @@ -23,27 +23,29 @@ end end -local function form() - Html.simply_html_page{ - head = function() %> - <title>Run Luan Code</title> -<% end; - body = function() %> - <center margin-top=10> - <h3>Run Luan Code</h3> +local function form() %> +<html> + <head> + <% Html.simply_html_head() %> + <title>Run Luan Code</title> + </head> + <body> + <center margin-top=10> + <h3>Run Luan Code</h3> + </center> + <form name="form0" method="post"> + <input type="hidden" name="content_type" value="text/plain" /> + <center> + <textarea name="code" rows="20" cols="90" wrap="off" autofocus></textarea> </center> - <form name="form0" method="post"> - <input type="hidden" name="content_type" value="text/plain" /> - <center> - <textarea name="code" rows="20" cols="90" wrap="off" autofocus></textarea> - </center> - <center margin-top=5> - <input type="submit" value="Execute Luan Code" textcolor="white" bgcolor="#337ab7"/> - </center> - </form> -<% end; - } -end + <center margin-top=5> + <input type="submit" value="Execute Luan Code" textcolor="white" bgcolor="#337ab7"/> + </center> + </form> + <% Html.simply_html_body_bottom() %> + </body> +</html> +<% end function service() Io.stdout = Http.response.text_writer()