changeset 558:6e3f063b71b5

remove SimplyHTML from run.luan
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 23 Jun 2015 03:24:03 -0600
parents 6268c1ce6ea8
children bfb2c30324c0
files http/src/luan/modules/http/run.luan
diffstat 1 files changed, 34 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
diff -r 6268c1ce6ea8 -r 6e3f063b71b5 http/src/luan/modules/http/run.luan
--- a/http/src/luan/modules/http/run.luan	Sun Jun 21 16:15:52 2015 -0600
+++ b/http/src/luan/modules/http/run.luan	Tue Jun 23 03:24:03 2015 -0600
@@ -1,8 +1,9 @@
 local Luan = require "luan:Luan"
-local load = Luan.load
-local try = Luan.try
+local error = Luan.error
+local load = Luan.load or error()
+local try = Luan.try or error()
 local Io = require "luan:Io"
-local print = Io.print
+local print = Io.print or error()
 local Http = require "luan:http/Http"
 local String = require "luan:String"
 local Html = require "luan:Html"
@@ -27,23 +28,41 @@
 local function form() %>
 <html>
 	<head>
-		<% Html.simply_html_head() %>
 		<title>Run Luan Code</title>
+		<style>
+			input[type="submit"]:hover { background: #236aa7 !important }
+		</style>
 	</head>
-	<body>
-		<center margin-top=10>
-			<h3>Run Luan Code</h3>
-		</center>
+	<body style='
+		font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
+		text-align: center;
+		margin-top: 1em;
+	'>
+		<h2 style='
+			margin-bottom: .3em;
+			font-weight: normal;
+		'>Run Luan Code</h2>
 		<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>
+			<div>
+				<textarea name="code" rows="20" cols="90" wrap="off" autofocus style='
+					font: inherit;
+					border-radius: 4px;
+					padding: .5em .8em;
+				'></textarea>
+			</div>
+			<div>
+				<input type="submit" value="Execute Luan Code" style='
+					margin-top: .3em;
+					color: white;
+					background: #337ab7;
+					border-color: #337ab7;
+					font: inherit;
+					padding: .5em;
+					border-radius: 4px;
+				'/>
+			</div>
 		</form>
-		<% Html.simply_html_body_bottom() %>
 	</body>
 </html>
 <% end