Lapis - A web framework for Lua or MoonScript powered by OpenResty

Lapis Lapis Lua MoonScript v1.0.3 Follow @moonscript Tweet Install luarocks install lapis Reference Manual Source on GitHub July 23rd, 2014: Lapis v1.0.3 is released, read more on the changelog ❧ Lapis is a framework for building web applications using MoonScript or Lua that runs inside of a customized version of Nginx called OpenResty . Lua View examples in MoonScript MoonScript View examples in Lua local lapis = require " lapis" local app = lapis . Application () app : match ( " /" , function ( self ) return " Hello world!" end ) return app lapis = require " lapis " class extends lapis . Application " / " : => " Hello world! " ❧ Lua is run directly inside of the Nginx worker, giving you the smallest barrier between the webserver and your code. OpenResty executes your Lua/MoonScript with LuaJIT, so it’s ...

Linked on 2014-07-29 19:00:40 | Similar Links