<!doctype html> <html class="no-js" lang="ja"> <head> <meta charset="utf-8"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <title>Sinatra Rubyブラウザエディタ</title> <meta name="description" content="Sinatraで作ったRuby専用のブラウザエディタ"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <link rel="stylesheet" href="css/main.css"> </head> <body> <form action="/" method="post"> <p>↓ここにコードを書く</p> <textarea name="codes" rows="8" cols="80"><%= @codes%></textarea> <p>↓ここに標準入力をかく(改行区切り)</p> <textarea name="stdin" rows="8" cols="80"><%= @stdin%></textarea> <input type="submit" value="送信"> </form> <p>↓実行結果</p> <textarea readonly name="response" rows="8" cols="80"><%= @stdout%><%= @stderr%></textarea> <p>↓ステータスコード</p> <p><%= @status%></p> </body> </html>