2008-01-08から1日間の記事一覧

hello world

LUA

[実行] response.content_type = 'text/html' response.puts 'hello, world!'

Tenjinを使う

LUA

[実行] response.content_type = 'text/html' local vars = { foo = 'HOGE', bar = 'FUGA' } response.render([[ <html> <body> #{@foo}<br> <b>#{@bar}</b> </body> </html> ]], vars)

はてなでLuaプログラミング

LUA

こちらのアイデアがおもしろかったので、真似してみた。こんな感じでエントリにコードを書いて >|lua| response.content_type = 'text/html'response.puts 'hello, world!' < エントリのurlをパラメータとしてrun_luaに渡すとLuaのコードを実行する。 http:/…