2008-01-08から1日間の記事一覧
[実行] response.content_type = 'text/html' response.puts 'hello, world!'
[実行] response.content_type = 'text/html' local vars = { foo = 'HOGE', bar = 'FUGA' } response.render([[ <html> <body> #{@foo}<br> <b>#{@bar}</b> </body> </html> ]], vars)
こちらのアイデアがおもしろかったので、真似してみた。こんな感じでエントリにコードを書いて >|lua| response.content_type = 'text/html'response.puts 'hello, world!' < エントリのurlをパラメータとしてrun_luaに渡すとLuaのコードを実行する。 http:/…