comparison http/src/luan/modules/http/run.luan @ 558:6e3f063b71b5

remove SimplyHTML from run.luan
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 23 Jun 2015 03:24:03 -0600
parents 7bc63886d4f2
children bfb2c30324c0
comparison
equal deleted inserted replaced
557:6268c1ce6ea8 558:6e3f063b71b5
1 local Luan = require "luan:Luan" 1 local Luan = require "luan:Luan"
2 local load = Luan.load 2 local error = Luan.error
3 local try = Luan.try 3 local load = Luan.load or error()
4 local try = Luan.try or error()
4 local Io = require "luan:Io" 5 local Io = require "luan:Io"
5 local print = Io.print 6 local print = Io.print or error()
6 local Http = require "luan:http/Http" 7 local Http = require "luan:http/Http"
7 local String = require "luan:String" 8 local String = require "luan:String"
8 local Html = require "luan:Html" 9 local Html = require "luan:Html"
9 10
10 11
25 end 26 end
26 27
27 local function form() %> 28 local function form() %>
28 <html> 29 <html>
29 <head> 30 <head>
30 <% Html.simply_html_head() %>
31 <title>Run Luan Code</title> 31 <title>Run Luan Code</title>
32 <style>
33 input[type="submit"]:hover { background: #236aa7 !important }
34 </style>
32 </head> 35 </head>
33 <body> 36 <body style='
34 <center margin-top=10> 37 font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
35 <h3>Run Luan Code</h3> 38 text-align: center;
36 </center> 39 margin-top: 1em;
40 '>
41 <h2 style='
42 margin-bottom: .3em;
43 font-weight: normal;
44 '>Run Luan Code</h2>
37 <form name="form0" method="post"> 45 <form name="form0" method="post">
38 <input type="hidden" name="content_type" value="text/plain" /> 46 <input type="hidden" name="content_type" value="text/plain" />
39 <center> 47 <div>
40 <textarea name="code" rows="20" cols="90" wrap="off" autofocus></textarea> 48 <textarea name="code" rows="20" cols="90" wrap="off" autofocus style='
41 </center> 49 font: inherit;
42 <center margin-top=5> 50 border-radius: 4px;
43 <input type="submit" value="Execute Luan Code" textcolor="white" bgcolor="#337ab7"/> 51 padding: .5em .8em;
44 </center> 52 '></textarea>
53 </div>
54 <div>
55 <input type="submit" value="Execute Luan Code" style='
56 margin-top: .3em;
57 color: white;
58 background: #337ab7;
59 border-color: #337ab7;
60 font: inherit;
61 padding: .5em;
62 border-radius: 4px;
63 '/>
64 </div>
45 </form> 65 </form>
46 <% Html.simply_html_body_bottom() %>
47 </body> 66 </body>
48 </html> 67 </html>
49 <% end 68 <% end
50 69
51 return function() 70 return function()